Marthee commited on
Commit
bb8571f
·
verified ·
1 Parent(s): 2a16b8f

Update app.py

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