Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = {}
|