Marthee commited on
Commit
d9f6fc2
·
verified ·
1 Parent(s): ecf3b5a

Update InitialMarkups.py

Browse files
Files changed (1) hide show
  1. InitialMarkups.py +2 -0
InitialMarkups.py CHANGED
@@ -1072,6 +1072,7 @@ def extract_section_under_header(multiplePDF_Paths):
1072
 
1073
  docarray.append(docHighlights)
1074
  jsons.append(data_list_JSON)
 
1075
  dbxTeam = tsadropboxretrieval.ADR_Access_DropboxTeam('user')
1076
  dbPath = '/TSA JOBS/ADR Test/FIND/'
1077
  jsonCombined=[]
@@ -1083,6 +1084,7 @@ def extract_section_under_header(multiplePDF_Paths):
1083
  pdf_bytes = BytesIO()
1084
  docHighlights.save(pdf_bytes)
1085
  combined_json_str = json.dumps(jsonCombined, indent=1)
 
1086
  return pdf_bytes.getvalue(), docHighlights , combined_json_str
1087
 
1088
  ########################################################################################################################################################
 
1072
 
1073
  docarray.append(docHighlights)
1074
  jsons.append(data_list_JSON)
1075
+ print('lenght of json:',len(jsons))
1076
  dbxTeam = tsadropboxretrieval.ADR_Access_DropboxTeam('user')
1077
  dbPath = '/TSA JOBS/ADR Test/FIND/'
1078
  jsonCombined=[]
 
1084
  pdf_bytes = BytesIO()
1085
  docHighlights.save(pdf_bytes)
1086
  combined_json_str = json.dumps(jsonCombined, indent=1)
1087
+ print('lenght of json:',len(combined_json_str))
1088
  return pdf_bytes.getvalue(), docHighlights , combined_json_str
1089
 
1090
  ########################################################################################################################################################