Spaces:
Sleeping
Sleeping
jonathanjordan21
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -333,7 +333,7 @@ def respond(
|
|
333 |
# if request_undetected and len(plates) == 0:
|
334 |
# + f"\n\nConfidence score:\n{request_scores}"
|
335 |
# return "Request code number:\n" + request_numbers + "\n\nRequest detail:\n" + request_details + "\n\nPlate numbers: " + plate_numbers
|
336 |
-
|
337 |
out = ""
|
338 |
for plate in plates:
|
339 |
results, descriptions, result_details = [], [], []
|
@@ -387,6 +387,8 @@ def respond(
|
|
387 |
|
388 |
if result != None:
|
389 |
results.append(result)
|
|
|
|
|
390 |
out += "\n\n" + build_outputs(results, descriptions, result_details, plate)
|
391 |
elif vehicle_tax_info.get(plate):
|
392 |
out += "\n\n" + build_output_vehicle(plate)
|
@@ -399,7 +401,7 @@ def respond(
|
|
399 |
return "Request code number: " + request_code[:3] + "\nRequest detail: " + request_code[6:] + "\nPlate numbers: " + plate_numbers
|
400 |
else:
|
401 |
result, description, result_detail = get_calculation(request_code[:3], "")
|
402 |
-
out
|
403 |
|
404 |
return out
|
405 |
|
|
|
333 |
# if request_undetected and len(plates) == 0:
|
334 |
# + f"\n\nConfidence score:\n{request_scores}"
|
335 |
# return "Request code number:\n" + request_numbers + "\n\nRequest detail:\n" + request_details + "\n\nPlate numbers: " + plate_numbers
|
336 |
+
print(request_scores)
|
337 |
out = ""
|
338 |
for plate in plates:
|
339 |
results, descriptions, result_details = [], [], []
|
|
|
387 |
|
388 |
if result != None:
|
389 |
results.append(result)
|
390 |
+
descriptions.append(description)
|
391 |
+
result_details.append(result_detail)
|
392 |
out += "\n\n" + build_outputs(results, descriptions, result_details, plate)
|
393 |
elif vehicle_tax_info.get(plate):
|
394 |
out += "\n\n" + build_output_vehicle(plate)
|
|
|
401 |
return "Request code number: " + request_code[:3] + "\nRequest detail: " + request_code[6:] + "\nPlate numbers: " + plate_numbers
|
402 |
else:
|
403 |
result, description, result_detail = get_calculation(request_code[:3], "")
|
404 |
+
out += build_output_formula([description], [result_detail])
|
405 |
|
406 |
return out
|
407 |
|