Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
ea64bb3
1
Parent(s):
bfda109
Update app.py
Browse files
app.py
CHANGED
@@ -50,11 +50,11 @@ def extract_data_from_pdf(pdf_file):
|
|
50 |
|
51 |
return output
|
52 |
|
53 |
-
# Gradio Interface
|
54 |
iface = gr.Interface(
|
55 |
fn=extract_data_from_pdf,
|
56 |
-
inputs=gr.
|
57 |
-
outputs=gr.
|
58 |
title="PDF Data Extractor",
|
59 |
description="Extract structured data from a PDF and output it as an Excel file."
|
60 |
)
|
|
|
50 |
|
51 |
return output
|
52 |
|
53 |
+
# Updated Gradio Interface
|
54 |
iface = gr.Interface(
|
55 |
fn=extract_data_from_pdf,
|
56 |
+
inputs=gr.File(label="Upload PDF"),
|
57 |
+
outputs=gr.File(label="Download Excel"),
|
58 |
title="PDF Data Extractor",
|
59 |
description="Extract structured data from a PDF and output it as an Excel file."
|
60 |
)
|