Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -242,18 +242,15 @@ def findapiAllDocNoNotbilled():
|
|
| 242 |
data = request.get_json()
|
| 243 |
# Extracting values
|
| 244 |
pdfLink = data.get('filePath')
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
pdfbytes, pdf_document,tablepdfoutput,alltext= InitialMarkups.extract_section_under_header_FullDoc_WithoutNotBilled(pdfLink)
|
| 249 |
-
global jsonoutput
|
| 250 |
-
jsonoutput=tablepdfoutput
|
| 251 |
-
return jsonify(alltext)
|
| 252 |
except Exception as e:
|
| 253 |
return jsonify({"error": str(e)}), 500
|
| 254 |
|
| 255 |
|
| 256 |
|
|
|
|
| 257 |
################################################################################################################################################################
|
| 258 |
################################################################################################################################################################
|
| 259 |
##################### For Rawan - MC Connection ###########################################################################################################
|
|
|
|
| 242 |
data = request.get_json()
|
| 243 |
# Extracting values
|
| 244 |
pdfLink = data.get('filePath')
|
| 245 |
+
pdfbytes, pdf_document,tablepdfoutput, alltext_tobebilled,alltextNoNotbilled= InitialMarkups.extract_section_under_header_tobebilledOnly(pdfLink)
|
| 246 |
+
|
| 247 |
+
return jsonify(alltextNoNotbilled)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
except Exception as e:
|
| 249 |
return jsonify({"error": str(e)}), 500
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
+
|
| 254 |
################################################################################################################################################################
|
| 255 |
################################################################################################################################################################
|
| 256 |
##################### For Rawan - MC Connection ###########################################################################################################
|