Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -224,18 +224,22 @@ with demo:
|
|
224 |
btn = gr.Button("Run model", variant="primary")
|
225 |
|
226 |
with gr.Box():
|
|
|
227 |
with gr.Row():
|
228 |
with gr.Column():
|
229 |
-
gr.
|
230 |
-
|
231 |
-
|
232 |
-
gr.
|
233 |
-
|
234 |
-
|
235 |
-
|
|
|
|
|
236 |
with gr.Column():
|
237 |
-
gr.
|
238 |
-
|
|
|
239 |
|
240 |
btn.click(fn=analyze_image, inputs=[inputs, inputs_pdf, tok_input], outputs=[image_output, image_text, html, json])
|
241 |
|
|
|
224 |
btn = gr.Button("Run model", variant="primary")
|
225 |
|
226 |
with gr.Box():
|
227 |
+
gr.Markdown("<h2><center>Outputs</center></h2>")
|
228 |
with gr.Row():
|
229 |
with gr.Column():
|
230 |
+
with gr.Box():
|
231 |
+
gr.Markdown("<center><strong>Contiguous text</strong></center>")
|
232 |
+
image_text = gr.Textbox()
|
233 |
+
with gr.Box():
|
234 |
+
gr.Markdown("<center><strong>Table</strong></center>")
|
235 |
+
html = gr.HTML()
|
236 |
+
with gr.Box():
|
237 |
+
gr.Markdown("<center><strong>JSON</strong></center>")
|
238 |
+
json = gr.JSON()
|
239 |
with gr.Column():
|
240 |
+
with gr.Box():
|
241 |
+
gr.Markdown("<center><strong>Layout detection</strong></center>")
|
242 |
+
image_output = gr.Image(type="numpy", label="Output Image")
|
243 |
|
244 |
btn.click(fn=analyze_image, inputs=[inputs, inputs_pdf, tok_input], outputs=[image_output, image_text, html, json])
|
245 |
|