Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from transformers import pipeline
|
|
| 9 |
|
| 10 |
# Function to extract text from PDF
|
| 11 |
def extract_text_from_pdf(pdf_file):
|
| 12 |
-
|
| 13 |
text = ""
|
| 14 |
for page in reader.pages:
|
| 15 |
text += page.extract_text()
|
|
|
|
| 9 |
|
| 10 |
# Function to extract text from PDF
|
| 11 |
def extract_text_from_pdf(pdf_file):
|
| 12 |
+
reader = PdfReader(pdf_file)
|
| 13 |
text = ""
|
| 14 |
for page in reader.pages:
|
| 15 |
text += page.extract_text()
|