Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ headers0 = {"Authorization": "Bearer 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"}
|
|
42 |
def read_pdf(file):
|
43 |
# images=pdf2image.convert_from_path(file)
|
44 |
# # print(type(images))
|
45 |
-
fileobj = open(
|
46 |
pdfReader = PdfFileReader(fileobj)
|
47 |
count = pdfReader.numPages
|
48 |
all_page_text = " "
|
|
|
42 |
def read_pdf(file):
|
43 |
# images=pdf2image.convert_from_path(file)
|
44 |
# # print(type(images))
|
45 |
+
fileobj = open(file, 'rb')
|
46 |
pdfReader = PdfFileReader(fileobj)
|
47 |
count = pdfReader.numPages
|
48 |
all_page_text = " "
|