Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -127,7 +127,7 @@ async def extract_text_from_pdf(pdf_data):
|
|
127 |
pdf_reader = PyPDF2.PdfReader(pdf_file)
|
128 |
text = ""
|
129 |
for page_num in range(len(pdf_reader.pages)):
|
130 |
-
page = pdf_reader.
|
131 |
text += page.extract_text()
|
132 |
return text
|
133 |
|
|
|
127 |
pdf_reader = PyPDF2.PdfReader(pdf_file)
|
128 |
text = ""
|
129 |
for page_num in range(len(pdf_reader.pages)):
|
130 |
+
page = pdf_reader.pages[page_num]
|
131 |
text += page.extract_text()
|
132 |
return text
|
133 |
|