andreeabodea commited on
Commit
c40d6df
·
verified ·
1 Parent(s): 5fa7016

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=process_pdf,
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",