Spaces:
Running
on
Zero
Running
on
Zero
update app
Browse files
app.py
CHANGED
|
@@ -223,6 +223,11 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
|
|
| 223 |
ref_text_input = gr.Textbox(label="Reference Text (for Locate task)", placeholder="e.g., the teacher, 20-10, a red car...", visible=False)
|
| 224 |
submit_btn = gr.Button("Process Image", variant="primary")
|
| 225 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
with gr.Column(scale=2):
|
| 227 |
output_text = gr.Textbox(label="Output (OCR)", lines=8, show_copy_button=True)
|
| 228 |
output_image = gr.Image(label="Layout Detection (If Any)", type="pil")
|
|
|
|
| 223 |
ref_text_input = gr.Textbox(label="Reference Text (for Locate task)", placeholder="e.g., the teacher, 20-10, a red car...", visible=False)
|
| 224 |
submit_btn = gr.Button("Process Image", variant="primary")
|
| 225 |
|
| 226 |
+
examples = gr.Examples(
|
| 227 |
+
examples=["examples/1.jpg", "examples/2.jpg", "examples/3.jpg"],
|
| 228 |
+
inputs=image_input, label="Examples"
|
| 229 |
+
)
|
| 230 |
+
|
| 231 |
with gr.Column(scale=2):
|
| 232 |
output_text = gr.Textbox(label="Output (OCR)", lines=8, show_copy_button=True)
|
| 233 |
output_image = gr.Image(label="Layout Detection (If Any)", type="pil")
|