Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -579,6 +579,26 @@ State-of-the-art OCR on OlmOCR-Bench, ~9× smaller and faster than competitors.
|
|
| 579 |
],
|
| 580 |
)
|
| 581 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 582 |
with gr.Row():
|
| 583 |
with gr.Column():
|
| 584 |
raw_output = gr.Textbox(
|
|
@@ -588,23 +608,7 @@ State-of-the-art OCR on OlmOCR-Bench, ~9× smaller and faster than competitors.
|
|
| 588 |
max_lines=30,
|
| 589 |
)
|
| 590 |
|
| 591 |
-
|
| 592 |
-
gr.Examples(
|
| 593 |
-
examples=[
|
| 594 |
-
["examples/example_1.png"],
|
| 595 |
-
["examples/example_2.png"],
|
| 596 |
-
["examples/example_3.png"],
|
| 597 |
-
["examples/example_4.png"],
|
| 598 |
-
["examples/example_5.png"],
|
| 599 |
-
["examples/example_6.png"],
|
| 600 |
-
["examples/example_7.png"],
|
| 601 |
-
["examples/example_8.png"],
|
| 602 |
-
["examples/example_9.png"],
|
| 603 |
-
],
|
| 604 |
-
inputs=[file_input],
|
| 605 |
-
label="Example Documents",
|
| 606 |
-
)
|
| 607 |
-
|
| 608 |
# Event handlers
|
| 609 |
submit_btn.click(
|
| 610 |
fn=process_input,
|
|
|
|
| 579 |
],
|
| 580 |
)
|
| 581 |
|
| 582 |
+
# Example inputs
|
| 583 |
+
with gr.Accordion("📁 Example Documents (click to expand)", open=True):
|
| 584 |
+
gr.Examples(
|
| 585 |
+
examples=[
|
| 586 |
+
["examples/example_1.png"],
|
| 587 |
+
["examples/example_2.png"],
|
| 588 |
+
["examples/example_3.png"],
|
| 589 |
+
["examples/example_4.png"],
|
| 590 |
+
["examples/example_5.png"],
|
| 591 |
+
["examples/example_6.png"],
|
| 592 |
+
["examples/example_7.png"],
|
| 593 |
+
["examples/example_8.png"],
|
| 594 |
+
["examples/example_9.png"],
|
| 595 |
+
],
|
| 596 |
+
inputs=[file_input],
|
| 597 |
+
examples_per_page=9,
|
| 598 |
+
label="",
|
| 599 |
+
)
|
| 600 |
+
|
| 601 |
+
|
| 602 |
with gr.Row():
|
| 603 |
with gr.Column():
|
| 604 |
raw_output = gr.Textbox(
|
|
|
|
| 608 |
max_lines=30,
|
| 609 |
)
|
| 610 |
|
| 611 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 612 |
# Event handlers
|
| 613 |
submit_btn.click(
|
| 614 |
fn=process_input,
|