Mi-Ni commited on
Commit
efe5ee8
·
1 Parent(s): bf84551

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,8 +39,8 @@ def text_extraction(element):
39
  def read_pdf(pdf_path):
40
 
41
  # Use pdf_path.name to get the file name from the gr.File object
42
- with open(pdf_path.name, 'rb') as pdfFileObj:
43
- pdfReaded = PyPDF2.PdfReader(pdfFileObj)
44
 
45
 
46
 
 
39
  def read_pdf(pdf_path):
40
 
41
  # Use pdf_path.name to get the file name from the gr.File object
42
+ with open(pdf_path.name, 'rb') as pdfFileObj:
43
+ pdfReaded = PyPDF2.PdfReader(pdfFileObj)
44
 
45
 
46