jonathanjordan21 commited on
Commit
049b50f
·
verified ·
1 Parent(s): 26b9125

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -361,7 +361,7 @@ def respond(
361
  if descriptions:
362
  out += "\n\n" + build_output_formula(descriptions, result_details)
363
  else:
364
- return "Request code number:\n" + request_numbers + "\n\nRequest detail:\n" + request_details + "\n\nPlate numbers: " + plate_numbers
365
 
366
  return out
367
 
@@ -390,9 +390,9 @@ def respond(
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)
393
- else:
394
- # + f"\nConfidence score: {round(scores[s_max].tolist(),3)}"
395
- out += "Request code number: " + request_code[:3] + "\nRequest detail: " + "\nPlate numbers: " + plate_numbers
396
 
397
  if out == "":
398
  if request_code[:3] == undetected_code:
 
361
  if descriptions:
362
  out += "\n\n" + build_output_formula(descriptions, result_details)
363
  else:
364
+ return "Request code number: " + request_numbers + "\n\nRequest detail: " + request_details + "\n\nPlate numbers: " + plate_numbers
365
 
366
  return out
367
 
 
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)
393
+ # else:
394
+ # # + f"\nConfidence score: {round(scores[s_max].tolist(),3)}"
395
+ # out += "Request code number: " + request_code[:3] + "\nRequest detail: " + "\nPlate numbers: " + plate_numbers
396
 
397
  if out == "":
398
  if request_code[:3] == undetected_code: