andreeabodea commited on
Commit
163d63d
·
verified ·
1 Parent(s): c40d6df

Update app.py

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