Spaces:
Build error
Build error
Update app.py
Browse files
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 |
|
|
@@ -48,10 +48,9 @@ def process_xlsx(params):
|
|
| 48 |
|
| 49 |
# Create the final output dictionary
|
| 50 |
#
|
| 51 |
-
|
| 52 |
-
obj = {"text": adress, "answer":output, "qcUser": None, "normalfileID": file_id}
|
| 53 |
solutions.append(obj)
|
| 54 |
-
text_id = text_id+1
|
| 55 |
|
| 56 |
# result_url = f"{api}/{job_id}"
|
| 57 |
# send_results_to_api(solutions, result_url)
|
|
|
|
| 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 |
|
|
|
|
| 48 |
|
| 49 |
# Create the final output dictionary
|
| 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)
|