Spaces:
Running
Running
Commit
·
0d5050b
1
Parent(s):
95af358
Remove example images section from Gradio interface
Browse files
app.py
CHANGED
@@ -86,17 +86,6 @@ with gr.Blocks(title="Nanonets OCR Demo", theme=gr.themes.Soft()) as demo:
|
|
86 |
placeholder="Extracted text will appear here..."
|
87 |
)
|
88 |
|
89 |
-
# Example images section
|
90 |
-
gr.Markdown("## 📄 Try with example images:")
|
91 |
-
gr.Examples(
|
92 |
-
examples=[
|
93 |
-
["examples/sample1.jpg"] if "examples/sample1.jpg" else None,
|
94 |
-
["examples/sample2.png"] if "examples/sample2.png" else None,
|
95 |
-
],
|
96 |
-
inputs=image_input,
|
97 |
-
label="Sample Documents"
|
98 |
-
)
|
99 |
-
|
100 |
# Event handlers
|
101 |
extract_btn.click(
|
102 |
fn=ocr_image_gradio,
|
|
|
86 |
placeholder="Extracted text will appear here..."
|
87 |
)
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
# Event handlers
|
90 |
extract_btn.click(
|
91 |
fn=ocr_image_gradio,
|