Marthee commited on
Commit
5187874
·
verified ·
1 Parent(s): 396c6ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- data = json.loads(tablepdfoutput)
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