Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def get_first_page_text(path):
|
|
93 |
return doc.pages[0].extract_text()
|
94 |
|
95 |
# Define the Gradio interface
|
96 |
-
iface = gr.Interface(fn=
|
97 |
inputs=gr.File(type="binary", label="Upload PDF"),
|
98 |
outputs=gr.Textbox(label="Extracted Text"),
|
99 |
title="PDF Text Extractor",
|
|
|
93 |
return doc.pages[0].extract_text()
|
94 |
|
95 |
# Define the Gradio interface
|
96 |
+
iface = gr.Interface(fn=get_first_page_text,
|
97 |
inputs=gr.File(type="binary", label="Upload PDF"),
|
98 |
outputs=gr.Textbox(label="Extracted Text"),
|
99 |
title="PDF Text Extractor",
|