Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -202,15 +202,15 @@ def generate_image(model_name: str, text: str, image: Image.Image,
|
|
| 202 |
|
| 203 |
# Define examples for image inference
|
| 204 |
image_examples = [
|
| 205 |
-
["Extract the full page.", "images/3.
|
| 206 |
["Extract the content.", "images/4.png"],
|
| 207 |
-
["Convert this page to doc [table] precisely for markdown.", "images/0.
|
| 208 |
]
|
| 209 |
|
| 210 |
|
| 211 |
# Create the Gradio Interface
|
| 212 |
with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
| 213 |
-
gr.Markdown("# **
|
| 214 |
with gr.Row():
|
| 215 |
with gr.Column(scale=2):
|
| 216 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|
|
|
|
| 202 |
|
| 203 |
# Define examples for image inference
|
| 204 |
image_examples = [
|
| 205 |
+
["Extract the full page.", "images/3.png"],
|
| 206 |
["Extract the content.", "images/4.png"],
|
| 207 |
+
["Convert this page to doc [table] precisely for markdown.", "images/0.png"]
|
| 208 |
]
|
| 209 |
|
| 210 |
|
| 211 |
# Create the Gradio Interface
|
| 212 |
with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
| 213 |
+
gr.Markdown("# **Optical Character Recognition (OCR)**", elem_id="main-title")
|
| 214 |
with gr.Row():
|
| 215 |
with gr.Column(scale=2):
|
| 216 |
image_query = gr.Textbox(label="Query Input", placeholder="Enter your query here...")
|