Spaces:
Build error
Build error
Commit
·
03f503a
1
Parent(s):
5e22f3f
Added examples to new UI
Browse files
app.py
CHANGED
@@ -293,6 +293,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
293 |
with gr.Tab("Ref. Text"):
|
294 |
text_output = gr.components.Textbox(label="Ref. Text")
|
295 |
extract_button.click(fn = ocr_interface, inputs=[pdf_input, model_input, question_input], outputs=[values_output, total_output, text_output])
|
296 |
-
|
297 |
|
298 |
demo.launch()
|
|
|
293 |
with gr.Tab("Ref. Text"):
|
294 |
text_output = gr.components.Textbox(label="Ref. Text")
|
295 |
extract_button.click(fn = ocr_interface, inputs=[pdf_input, model_input, question_input], outputs=[values_output, total_output, text_output])
|
296 |
+
gr.Examples(['Example1.pdf', 'Example2.pdf'], inputs = pdf_input)
|
297 |
|
298 |
demo.launch()
|