Mishmosh commited on
Commit
a0807ef
·
1 Parent(s): 81e80ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -98,7 +98,8 @@ def read_pdf(pdf_path):
98
  # create a PDF file object
99
  pdfFileObj = open(pdf_path, 'rb')
100
  # create a PDF reader object
101
- pdfReaded = PyPDF2.PdfReader(pdfFileObj)
 
102
 
103
  # Create the dictionary to extract text from each image
104
  text_per_page = {}
 
98
  # create a PDF file object
99
  pdfFileObj = open(pdf_path, 'rb')
100
  # create a PDF reader object
101
+ #pdfReaded = PyPDF2.PdfReader(pdfFileObj) #coded out as suggested by chatgpt
102
+ pdfReaded = PyPDF2.PdfFileReader(pdfFileObj)
103
 
104
  # Create the dictionary to extract text from each image
105
  text_per_page = {}