jonathanjordan21 commited on
Commit
c026281
·
verified ·
1 Parent(s): a66bdd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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 = build_output_formula([description], [result_detail])
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