Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -92,8 +92,8 @@ def process_pdfs(pdf_files):
|
|
92 |
return csv_file_path
|
93 |
|
94 |
# Gradio interface
|
95 |
-
pdf_input = gr.
|
96 |
-
csv_output = gr.
|
97 |
|
98 |
gr.Interface(
|
99 |
fn=process_pdfs,
|
@@ -101,4 +101,4 @@ gr.Interface(
|
|
101 |
outputs=csv_output,
|
102 |
title="PDF Summarizer",
|
103 |
description="Upload PDF files and get a summarized CSV file."
|
104 |
-
).launch()
|
|
|
92 |
return csv_file_path
|
93 |
|
94 |
# Gradio interface
|
95 |
+
pdf_input = gr.File(label="Upload PDF Files", type="file", file_count="multiple")
|
96 |
+
csv_output = gr.File(label="Download CSV")
|
97 |
|
98 |
gr.Interface(
|
99 |
fn=process_pdfs,
|
|
|
101 |
outputs=csv_output,
|
102 |
title="PDF Summarizer",
|
103 |
description="Upload PDF files and get a summarized CSV file."
|
104 |
+
).launch()
|