Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def extract_text_from_pdf(pdf_file):
|
|
| 19 |
text = ""
|
| 20 |
for page in reader.pages:
|
| 21 |
text += page.extract_text()
|
| 22 |
-
|
| 23 |
|
| 24 |
# File uploader
|
| 25 |
pdf_file = st.file_uploader("Upload PDF", type=["pdf"])
|
|
|
|
| 19 |
text = ""
|
| 20 |
for page in reader.pages:
|
| 21 |
text += page.extract_text()
|
| 22 |
+
return text
|
| 23 |
|
| 24 |
# File uploader
|
| 25 |
pdf_file = st.file_uploader("Upload PDF", type=["pdf"])
|