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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -392,6 +392,10 @@ def respond(
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)
 
 
 
 
395
  # else:
396
  # # + f"\nConfidence score: {round(scores[s_max].tolist(),3)}"
397
  # out += "Request code number: " + request_code[:3] + "\nRequest detail: " + "\nPlate numbers: " + plate_numbers
 
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)
395
+ elif description != None:
396
+ descriptions.append(description)
397
+ result_details.append(result_detail)
398
+ out += "\n\n" + build_output_formula(descriptions, result_details)
399
  # else:
400
  # # + f"\nConfidence score: {round(scores[s_max].tolist(),3)}"
401
  # out += "Request code number: " + request_code[:3] + "\nRequest detail: " + "\nPlate numbers: " + plate_numbers