Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -393,8 +393,10 @@ def findapitobebilledonlymultple():
|
|
| 393 |
pdfbytes, pdf_document, tablepdfoutput, alltext , filename= InitialMarkups.extract_section_under_header_tobebilledMultiplePDFSmarthe(pdfLink)
|
| 394 |
# return jsonify(tablepdfoutput)
|
| 395 |
# Parse JSON string → list of dicts
|
| 396 |
-
|
| 397 |
-
|
|
|
|
|
|
|
| 398 |
# Collect all body parts
|
| 399 |
html_body = ""
|
| 400 |
|
|
|
|
| 393 |
pdfbytes, pdf_document, tablepdfoutput, alltext , filename= InitialMarkups.extract_section_under_header_tobebilledMultiplePDFSmarthe(pdfLink)
|
| 394 |
# return jsonify(tablepdfoutput)
|
| 395 |
# Parse JSON string → list of dicts
|
| 396 |
+
if isinstance(tablepdfoutput, str):
|
| 397 |
+
data = json.loads(tablepdfoutput)
|
| 398 |
+
else:
|
| 399 |
+
data = tablepdfoutput
|
| 400 |
# Collect all body parts
|
| 401 |
html_body = ""
|
| 402 |
|