jonathanjordan21 commited on
Commit
85f133c
·
verified ·
1 Parent(s): fc8b0e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -174,7 +174,7 @@ codes_emb = model.encode([x[6:] for x in codes])
174
 
175
  def get_calculation(request_code, plate_number):
176
  calc = detail_perhitungan.get(request_code)
177
- vechicle = vehicle_tax_info.get(plate_number)
178
 
179
  if vehicle == None or calc == None:
180
  return None, None, None
@@ -297,7 +297,7 @@ def respond(
297
 
298
  for plate in plates:
299
  results = descriptions = result_details = []
300
- result, description, result_detail = get_calculation(code, plate)
301
 
302
  if result != None:
303
  results.append(result)
 
174
 
175
  def get_calculation(request_code, plate_number):
176
  calc = detail_perhitungan.get(request_code)
177
+ vehicle = vehicle_tax_info.get(plate_number)
178
 
179
  if vehicle == None or calc == None:
180
  return None, None, None
 
297
 
298
  for plate in plates:
299
  results = descriptions = result_details = []
300
+ result, description, result_detail = get_calculation(request_code[:3], plate)
301
 
302
  if result != None:
303
  results.append(result)