bacngv commited on
Commit
630879e
·
verified ·
1 Parent(s): 5945677

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -127,11 +127,12 @@ def process_file(pdf_file):
127
 
128
  app = gr.Interface(
129
  fn=process_file,
130
- inputs=gr.inputs.File(label="Upload PDF"),
131
- outputs=gr.outputs.File(label="Download Output"),
132
  title="Table Detection & OCR Extraction",
133
  description="Upload a scanned PDF, and this app will extract detected tables as CSVs and text as a TXT file."
134
  )
135
 
 
136
  if __name__ == "__main__":
137
  app.launch()
 
127
 
128
  app = gr.Interface(
129
  fn=process_file,
130
+ inputs=gr.File(label="Upload PDF", file_types=[".pdf"]),
131
+ outputs=gr.File(label="Download Output"),
132
  title="Table Detection & OCR Extraction",
133
  description="Upload a scanned PDF, and this app will extract detected tables as CSVs and text as a TXT file."
134
  )
135
 
136
+
137
  if __name__ == "__main__":
138
  app.launch()