Update app.py
Browse files
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=[
|
| 177 |
-
|
| 178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|