Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -261,9 +261,9 @@ def generate_image(model_name: str, text: str, image: Image.Image,
|
|
| 261 |
yield buffer, buffer
|
| 262 |
|
| 263 |
image_examples = [
|
|
|
|
| 264 |
["Perform OCR on the image.", "examples/1.jpg"],
|
| 265 |
["Extract the contents. [page].", "examples/2.jpg"],
|
| 266 |
-
["OCR the content perfectly.", "examples/3.jpg"],
|
| 267 |
]
|
| 268 |
|
| 269 |
with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
@@ -293,7 +293,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 293 |
markdown_output = gr.Markdown(label="(Result.Md)")
|
| 294 |
|
| 295 |
model_choice = gr.Radio(
|
| 296 |
-
choices=["Nanonets-OCR2-3B", "Chandra-OCR", "olmOCR-2-7B-1025"
|
| 297 |
label="Select Model",
|
| 298 |
value="Nanonets-OCR2-3B"
|
| 299 |
)
|
|
|
|
| 261 |
yield buffer, buffer
|
| 262 |
|
| 263 |
image_examples = [
|
| 264 |
+
["OCR the content perfectly.", "examples/3.jpg"],
|
| 265 |
["Perform OCR on the image.", "examples/1.jpg"],
|
| 266 |
["Extract the contents. [page].", "examples/2.jpg"],
|
|
|
|
| 267 |
]
|
| 268 |
|
| 269 |
with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
|
|
| 293 |
markdown_output = gr.Markdown(label="(Result.Md)")
|
| 294 |
|
| 295 |
model_choice = gr.Radio(
|
| 296 |
+
choices=["Nanonets-OCR2-3B", "Chandra-OCR", "Dots.OCR", "olmOCR-2-7B-1025"],
|
| 297 |
label="Select Model",
|
| 298 |
value="Nanonets-OCR2-3B"
|
| 299 |
)
|