Marthee commited on
Commit
3d03a5a
·
verified ·
1 Parent(s): 88ebedf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -233,6 +233,19 @@ def findapiFilteredHeadings():
233
  except Exception as e:
234
  return jsonify({"error": str(e)}), 500
235
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
 
237
 
238
  @app.route('/findapiAllDocNoNotbilled', methods=['GET','POST'])
 
233
  except Exception as e:
234
  return jsonify({"error": str(e)}), 500
235
 
236
+ @app.route('/findapitobebilledonly', methods=['GET','POST'])
237
+ def findapitobebilledonly():
238
+ try:
239
+ print('In process [Try]')
240
+ data = request.get_json()
241
+ # Extracting values
242
+ pdfLink = data.get('filePath')
243
+ print(pdfLink)
244
+ pdfbytes, pdf_document,tablepdfoutput,alltext= InitialMarkups.extract_section_under_header_tobebilled2(pdfLink)
245
+ return jsonify(alltext)
246
+ except Exception as e:
247
+ return jsonify({"error": str(e)}), 500
248
+
249
 
250
 
251
  @app.route('/findapiAllDocNoNotbilled', methods=['GET','POST'])