zliang commited on
Commit
67810b1
·
verified ·
1 Parent(s): a0baeb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -73,8 +73,8 @@ iface = gr.Interface(
73
  fn=process_pdf,
74
  inputs=gr.File(label="Upload a PDF"),
75
  outputs=[
76
- gr.Gallery(label="Figures from PDF").style(grid=[2], height=400, width=400),
77
- gr.Gallery(label="Tables from PDF ").style(grid=[2], height=400, width=400)
78
  ],
79
  title="PDF figures and tables extraction based on YOLOv10",
80
  description="Upload a PDF file to get figures and tables in the PDF"
 
73
  fn=process_pdf,
74
  inputs=gr.File(label="Upload a PDF"),
75
  outputs=[
76
+ gr.Gallery(label="Figures from PDF",object_fit='scale-down'),
77
+ gr.Gallery(label="Tables from PDF ",object_fit='scale-down')
78
  ],
79
  title="PDF figures and tables extraction based on YOLOv10",
80
  description="Upload a PDF file to get figures and tables in the PDF"