Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -236,15 +236,14 @@ def generate_image(model_name: str, text: str, image: Image.Image,
|
|
| 236 |
time.sleep(0.01)
|
| 237 |
yield buffer, buffer
|
| 238 |
|
| 239 |
-
|
| 240 |
-
# Define examples for image inference
|
| 241 |
image_examples = [
|
| 242 |
-
["
|
| 243 |
-
["
|
| 244 |
-
["
|
|
|
|
|
|
|
| 245 |
]
|
| 246 |
|
| 247 |
-
|
| 248 |
# Create the Gradio Interface
|
| 249 |
with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
| 250 |
gr.Markdown("# **Multimodal OCR**", elem_id="main-title")
|
|
|
|
| 236 |
time.sleep(0.01)
|
| 237 |
yield buffer, buffer
|
| 238 |
|
|
|
|
|
|
|
| 239 |
image_examples = [
|
| 240 |
+
["Perform OCR on the image precisely.", "examples/5.jpg"],
|
| 241 |
+
["Run OCR on the image and ensure high accuracy.", "examples/4.jpg"],
|
| 242 |
+
["Conduct OCR on the image with exact text recognition.", "examples/2.jpg"],
|
| 243 |
+
["Perform precise OCR extraction on the image.", "examples/1.jpg"],
|
| 244 |
+
["Convert this page to docling", "examples/3.jpg"],
|
| 245 |
]
|
| 246 |
|
|
|
|
| 247 |
# Create the Gradio Interface
|
| 248 |
with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
| 249 |
gr.Markdown("# **Multimodal OCR**", elem_id="main-title")
|