Yoxas commited on
Commit
5276fb9
·
verified ·
1 Parent(s): 6f05b94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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.inputs.File(label="Upload PDF Files", type="file", multiple=True)
96
- csv_output = gr.outputs.File(label="Download CSV")
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()