Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def remove_references(text):
|
|
19 |
def extract_text_from_pdf(file_path):
|
20 |
reader = PdfReader(file_path)
|
21 |
text = ""
|
22 |
-
for page in reader.pages:
|
23 |
text += page.extract_text() + "\n"
|
24 |
|
25 |
return text
|
|
|
19 |
def extract_text_from_pdf(file_path):
|
20 |
reader = PdfReader(file_path)
|
21 |
text = ""
|
22 |
+
for page in reader.pages[2:]:
|
23 |
text += page.extract_text() + "\n"
|
24 |
|
25 |
return text
|