Update app.py
Browse files
app.py
CHANGED
@@ -127,11 +127,12 @@ def process_file(pdf_file):
|
|
127 |
|
128 |
app = gr.Interface(
|
129 |
fn=process_file,
|
130 |
-
inputs=gr.
|
131 |
-
outputs=gr.
|
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()
|