Ayesha-Majeed commited on
Commit
ee52ae9
·
verified ·
1 Parent(s): b7ea308

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -173,9 +173,13 @@ def gradio_extraction(uploaded_files):
173
  iface = gr.Interface(
174
  fn=gradio_extraction,
175
  inputs = gr.File(file_types=[".pdf", ".jpg", ".jpeg", ".png", ".bmp", ".txt"], file_count="multiple"),
176
- outputs=[gr.Textbox(label="Extracted JSON"), gr.File(label="Download JSON")],
177
- title="Shipping Document Extractor",
178
- description="Upload PDFs or images of shipping/logistics documents and get structured JSON output."
 
 
 
 
179
  )
180
 
181
  iface.launch()
 
173
  iface = gr.Interface(
174
  fn=gradio_extraction,
175
  inputs = gr.File(file_types=[".pdf", ".jpg", ".jpeg", ".png", ".bmp", ".txt"], file_count="multiple"),
176
+ outputs=[
177
+ gr.Textbox(label="Extracted JSON",lines=25, max_lines=50),
178
+ gr.File(label="Download JSON")
179
+ ],
180
+ title="Shipping Document Text Extractor",
181
+ description="Upload PDFs or images of shipping/logistics documents and get structured JSON output.",
182
+ theme=gr.themes.Base(primary_hue="blue")
183
  )
184
 
185
  iface.launch()