Update app.py
Browse files
app.py
CHANGED
|
@@ -353,19 +353,18 @@ with gr.Blocks(css=css, theme=light_blue_theme) as demo:
|
|
| 353 |
with gr.Column(scale=3):
|
| 354 |
gr.Markdown("## Output", elem_id="output-title")
|
| 355 |
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, show_copy_button=True)
|
| 356 |
-
|
| 357 |
with gr.Accordion("(Result.md)", open=False):
|
| 358 |
markdown_output = gr.Markdown(label="(Result.Md)", latex_delimiters=[
|
| 359 |
{"left": "$$", "right": "$$", "display": True},
|
| 360 |
{"left": "$", "right": "$", "display": False}
|
| 361 |
])
|
| 362 |
|
| 363 |
-
|
| 364 |
-
|
| 365 |
"Aya-Vision-8B", "Qwen2-VL-OCR-2B"],
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
|
| 370 |
image_submit.click(
|
| 371 |
fn=generate_image,
|
|
|
|
| 353 |
with gr.Column(scale=3):
|
| 354 |
gr.Markdown("## Output", elem_id="output-title")
|
| 355 |
output = gr.Textbox(label="Raw Output Stream", interactive=False, lines=11, show_copy_button=True)
|
|
|
|
| 356 |
with gr.Accordion("(Result.md)", open=False):
|
| 357 |
markdown_output = gr.Markdown(label="(Result.Md)", latex_delimiters=[
|
| 358 |
{"left": "$$", "right": "$$", "display": True},
|
| 359 |
{"left": "$", "right": "$", "display": False}
|
| 360 |
])
|
| 361 |
|
| 362 |
+
model_choice = gr.Radio(
|
| 363 |
+
choices=["olmOCR-7B-0725", "Nanonets-OCR-s", "RolmOCR-7B",
|
| 364 |
"Aya-Vision-8B", "Qwen2-VL-OCR-2B"],
|
| 365 |
+
label="Select Model",
|
| 366 |
+
value="olmOCR-7B-0725"
|
| 367 |
+
)
|
| 368 |
|
| 369 |
image_submit.click(
|
| 370 |
fn=generate_image,
|