Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def view_pdf():
|
|
| 77 |
print("Error during PDF extraction:", e)
|
| 78 |
return "PDF could not be processed.", 500
|
| 79 |
|
| 80 |
-
if pdf_content is None
|
| 81 |
return "PDF content not found or broken.", 404
|
| 82 |
|
| 83 |
return send_file(
|
|
|
|
| 77 |
print("Error during PDF extraction:", e)
|
| 78 |
return "PDF could not be processed.", 500
|
| 79 |
|
| 80 |
+
if pdf_content is None :
|
| 81 |
return "PDF content not found or broken.", 404
|
| 82 |
|
| 83 |
return send_file(
|