jonathanjordan21 commited on
Commit
ae7fded
·
verified ·
1 Parent(s): 5f778f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -357,7 +357,7 @@ def build_output_vehicle(plate_number):
357
  out = "----------------------------------------------------\n\n"
358
  out = "Nomor Polisi: " + plate_number + "\n"
359
  vehicle["no_rangka"] = censor_middle(vehicle["no_rangka"])
360
- vehicle["harga_jual"] = "{:,}".format(vehicle["harga_jual"])
361
  out += "\n".join([k + " : " + str(v) for k,v in vehicle.items()])
362
  return out
363
 
@@ -367,7 +367,7 @@ def build_output(result, description, result_detail, plate_number):
367
 
368
  def build_outputs(results, descriptions, result_details, plate_number):
369
  vehicle = vehicle_tax_info.get(plate_number).copy()
370
- vehicle["harga_jual"] = "{:,}".format(vehicle["harga_jual"])
371
 
372
  out = "----------------------------------------------------\n\n"
373
  out = "Nomor Polisi: " + plate_number + "\n"
@@ -445,7 +445,7 @@ def respond(
445
  if scores[i] > threshold:
446
  request_details.append(codes[i][6:])
447
  request_numbers.append(codes[i][:3])
448
- request_scores.append(str( round(score.tolist(), 3) ) )
449
 
450
  if not request_details:
451
  request_details.append(undetected[6:])
 
357
  out = "----------------------------------------------------\n\n"
358
  out = "Nomor Polisi: " + plate_number + "\n"
359
  vehicle["no_rangka"] = censor_middle(vehicle["no_rangka"])
360
+ vehicle["harga_jual"] = "Rp{:,}".format(vehicle["harga_jual"])
361
  out += "\n".join([k + " : " + str(v) for k,v in vehicle.items()])
362
  return out
363
 
 
367
 
368
  def build_outputs(results, descriptions, result_details, plate_number):
369
  vehicle = vehicle_tax_info.get(plate_number).copy()
370
+ vehicle["harga_jual"] = "Rp{:,}".format(vehicle["harga_jual"])
371
 
372
  out = "----------------------------------------------------\n\n"
373
  out = "Nomor Polisi: " + plate_number + "\n"
 
445
  if scores[i] > threshold:
446
  request_details.append(codes[i][6:])
447
  request_numbers.append(codes[i][:3])
448
+ request_scores.append(str( round(scores[i].tolist(), 3) ) )
449
 
450
  if not request_details:
451
  request_details.append(undetected[6:])