JaMe76 commited on
Commit
940f0a4
·
1 Parent(s): 64811e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -9
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.Markdown("<h2><center>Text output</center></h2>")
230
- gr.Markdown("Will only show contiguous text from text blocks, titles and lists")
231
- image_text = gr.Textbox()
232
- gr.Markdown("<h2><center>First table</center></h2>")
233
- html = gr.HTML()
234
- gr.Markdown("<h2><center>JSON output</center></h2>")
235
- json = gr.JSON()
 
 
236
  with gr.Column():
237
- gr.Markdown("<h2><center>Layout detection</center></h2>")
238
- image_output = gr.Image(type="numpy", label="Output Image")
 
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