Spaces:
Runtime error
Runtime error
Liam Dyer
commited on
strip output text
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def convert(pdf_file):
|
|
| 36 |
"title": reader.metadata.title,
|
| 37 |
}
|
| 38 |
|
| 39 |
-
return full_text, metadata
|
| 40 |
|
| 41 |
|
| 42 |
gr.Interface(
|
|
|
|
| 36 |
"title": reader.metadata.title,
|
| 37 |
}
|
| 38 |
|
| 39 |
+
return full_text.strip(), metadata
|
| 40 |
|
| 41 |
|
| 42 |
gr.Interface(
|