Spaces:
Runtime error
Runtime error
Liam Dyer
commited on
improve output formatting
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def convert(pdf_file):
|
|
| 25 |
for idx, page in enumerate(reader.pages):
|
| 26 |
text = page.extract_text()
|
| 27 |
if len(text) > 0:
|
| 28 |
-
full_text += f"
|
| 29 |
|
| 30 |
# Extract metadata
|
| 31 |
metadata = {
|
|
|
|
| 25 |
for idx, page in enumerate(reader.pages):
|
| 26 |
text = page.extract_text()
|
| 27 |
if len(text) > 0:
|
| 28 |
+
full_text += f"---- Page {idx} ----\n" + page.extract_text() + "\n\n"
|
| 29 |
|
| 30 |
# Extract metadata
|
| 31 |
metadata = {
|