Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,12 +33,8 @@ def process():
|
|
| 33 |
# Ensure 'pdftotext.texts_from_pdf' is a valid function
|
| 34 |
pdftext = pdftotext.texts_from_pdf(pdf_data)
|
| 35 |
print('5')
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
"message": "Data received",
|
| 39 |
-
"input_data": pdftext
|
| 40 |
-
}
|
| 41 |
-
return jsonify(response_data)
|
| 42 |
|
| 43 |
except Exception as e:
|
| 44 |
print(f"Error: {e}")
|
|
|
|
| 33 |
# Ensure 'pdftotext.texts_from_pdf' is a valid function
|
| 34 |
pdftext = pdftotext.texts_from_pdf(pdf_data)
|
| 35 |
print('5')
|
| 36 |
+
|
| 37 |
+
return jsonify(pdftext)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
except Exception as e:
|
| 40 |
print(f"Error: {e}")
|