andreeabodea commited on
Commit
929f240
1 Parent(s): b349bff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -114,8 +114,8 @@ def get_first_page_text(path):
114
  return doc.pages[0].extract_text()
115
 
116
  # Define the Gradio interface
117
- # iface = gr.Interface(fn=get_first_page_text,
118
- iface = gr.Interface(fn=process_pdf,
119
  inputs=gr.File(type="binary", label="Upload PDF"),
120
  outputs=gr.Textbox(label="Extracted Text"),
121
  title="PDF Text Extractor",
 
114
  return doc.pages[0].extract_text()
115
 
116
  # Define the Gradio interface
117
+ iface = gr.Interface(fn=get_first_page_text,
118
+ # iface = gr.Interface(fn=process_pdf,
119
  inputs=gr.File(type="binary", label="Upload PDF"),
120
  outputs=gr.Textbox(label="Extracted Text"),
121
  title="PDF Text Extractor",