D3V1L1810 commited on
Commit
66ab975
·
verified ·
1 Parent(s): 6378ab1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def process_xlsx(params):
33
  # job_id = params.get("job_id", "")
34
 
35
  solutions=[]
36
- # text_id = 0
37
  for adress,file_id in zip(addresses, file_ids):
38
  doc = nlp_ner(adress)
39
 
@@ -50,7 +50,8 @@ def process_xlsx(params):
50
  #
51
  obj = {"text": adress, "answer":entities_dict, "qcUser": None, "normalfileID": file_id}
52
  solutions.append(obj)
53
- # text_id = text_id+1
 
54
 
55
  # result_url = f"{api}/{job_id}"
56
  # send_results_to_api(solutions, result_url)
 
33
  # job_id = params.get("job_id", "")
34
 
35
  solutions=[]
36
+ text_id = 1
37
  for adress,file_id in zip(addresses, file_ids):
38
  doc = nlp_ner(adress)
39
 
 
50
  #
51
  obj = {"text": adress, "answer":entities_dict, "qcUser": None, "normalfileID": file_id}
52
  solutions.append(obj)
53
+ print(f"{text_id}/{len(addresses)}\n")
54
+ text_id = text_id+1
55
 
56
  # result_url = f"{api}/{job_id}"
57
  # send_results_to_api(solutions, result_url)