Spaces:
Sleeping
Sleeping
jonathanjordan21
commited on
Update app.py
Browse files
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 |
-
|
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(
|
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)
|