prithivMLmods commited on
Commit
8c737d3
·
verified ·
1 Parent(s): 8c967c1

update app

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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")