Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -248,10 +248,10 @@ def findapi():
|
|
| 248 |
data = request.get_json()
|
| 249 |
# Extracting values
|
| 250 |
pdfLink = data.get('filePath')
|
| 251 |
-
pdfbytes, pdf_document,tablepdfoutput= InitialMarkups.extract_section_under_header(pdfLink)
|
| 252 |
global jsonoutput
|
| 253 |
jsonoutput=tablepdfoutput
|
| 254 |
-
return jsonify(
|
| 255 |
except Exception as e:
|
| 256 |
return jsonify({"error": str(e)}), 500
|
| 257 |
|
|
|
|
| 248 |
data = request.get_json()
|
| 249 |
# Extracting values
|
| 250 |
pdfLink = data.get('filePath')
|
| 251 |
+
pdfbytes, pdf_document,tablepdfoutput,alltext= InitialMarkups.extract_section_under_header(pdfLink)
|
| 252 |
global jsonoutput
|
| 253 |
jsonoutput=tablepdfoutput
|
| 254 |
+
return jsonify(alltext)
|
| 255 |
except Exception as e:
|
| 256 |
return jsonify({"error": str(e)}), 500
|
| 257 |
|