Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -87,10 +87,6 @@ def process_pdf(path):
|
|
87 |
#print(json_string)
|
88 |
|
89 |
|
90 |
-
def get_first_page_text(path):
|
91 |
-
doc = pdfplumber.open(io.BytesIO(path))
|
92 |
-
if len(doc.pages):
|
93 |
-
return doc.pages[0].extract_text()
|
94 |
|
95 |
# Define the Gradio interface
|
96 |
iface = gr.Interface(fn=get_first_page_text,
|
|
|
87 |
#print(json_string)
|
88 |
|
89 |
|
|
|
|
|
|
|
|
|
90 |
|
91 |
# Define the Gradio interface
|
92 |
iface = gr.Interface(fn=get_first_page_text,
|