Spaces:
Running
Running
Commit
·
3cd5721
1
Parent(s):
7e58b9d
FIx output
Browse files
app.py
CHANGED
@@ -121,10 +121,10 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
|
121 |
submit_btn.click(inference, inputs=[pdf, page_num], outputs=[original, docling_ocr_out, paddle_ocr_out, smoldocling_ocr_out])
|
122 |
|
123 |
with gr.Column():
|
124 |
-
original = gr.Image(width=320, height=320, label="Original Page")
|
125 |
-
docling_ocr_out = gr.Textbox(label="Docling OCR Output", type="text")
|
126 |
-
paddle_ocr_out = gr.Textbox(label="Paddle OCR Output", type="text")
|
127 |
-
smoldocling_ocr_out = gr.Textbox(label="SmolDocling OCR Output", type="text")
|
128 |
|
129 |
examples_obj = gr.Examples(examples=examples, inputs=[pdf])
|
130 |
|
|
|
121 |
submit_btn.click(inference, inputs=[pdf, page_num], outputs=[original, docling_ocr_out, paddle_ocr_out, smoldocling_ocr_out])
|
122 |
|
123 |
with gr.Column():
|
124 |
+
original = gr.Image(width=320, height=320, label="Original Page", interactive=False)
|
125 |
+
docling_ocr_out = gr.Textbox(label="Docling OCR Output", type="text", interactive=False)
|
126 |
+
paddle_ocr_out = gr.Textbox(label="Paddle OCR Output", type="text", interactive=False)
|
127 |
+
smoldocling_ocr_out = gr.Textbox(label="SmolDocling OCR Output", type="text", interactive=False)
|
128 |
|
129 |
examples_obj = gr.Examples(examples=examples, inputs=[pdf])
|
130 |
|