jonathanjordan21 commited on
Commit
3f0b524
·
verified ·
1 Parent(s): 722056a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -162,12 +162,12 @@ detail_perhitungan = {
162
  undetected = "099 - Lainnya/Tidak Terdeteksi"
163
 
164
  model_ids = [
165
- "Alibaba-NLP/gte-multilingual-base",
166
  "BAAI/bge-m3",
167
  "sentence-transformers/paraphrase-multilingual-mpnet-base-v2",
168
  "intfloat/multilingual-e5-small",
169
  "sentence-transformers/distiluse-base-multilingual-cased-v2",
170
  "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
 
171
  ]
172
  # model_id = "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2"
173
  # model_id = "Alibaba-NLP/gte-multilingual-base"
@@ -207,16 +207,16 @@ def build_output(result, description, result_detail, plate_number):
207
 
208
 
209
  def build_outputs(results, descriptions, result_details, plate_number):
210
- out = "=============================================="
211
  vehicle = vehicle_tax_info.get(plate_number)
212
- out += "\nPlate Number: " + plate_number + "\n"
213
  out += "\n".join([k + " : " + str(v) for k,v in vehicle.items()])
214
 
215
- out += "\n=============================================="
216
  out += f"\nWajib Pajak dengan NoPol {plate_number} ingin melakukan proses berikut:\n"
217
 
218
  for i, (res,desc,detail) in enumerate(zip(results, descriptions, result_details)):
219
- out += f"{i+1}. {detail}\nDetail perhitungan:\n{desc.replace('harga_jual', str(res))}\n"
220
 
221
  out += "Estimasi biaya: "
222
 
 
162
  undetected = "099 - Lainnya/Tidak Terdeteksi"
163
 
164
  model_ids = [
 
165
  "BAAI/bge-m3",
166
  "sentence-transformers/paraphrase-multilingual-mpnet-base-v2",
167
  "intfloat/multilingual-e5-small",
168
  "sentence-transformers/distiluse-base-multilingual-cased-v2",
169
  "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
170
+ "Alibaba-NLP/gte-multilingual-base",
171
  ]
172
  # model_id = "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2"
173
  # model_id = "Alibaba-NLP/gte-multilingual-base"
 
207
 
208
 
209
  def build_outputs(results, descriptions, result_details, plate_number):
210
+ out = "--------------------------------------------------"
211
  vehicle = vehicle_tax_info.get(plate_number)
212
+ out = "\nPlate Number: " + plate_number + "\n"
213
  out += "\n".join([k + " : " + str(v) for k,v in vehicle.items()])
214
 
215
+ out += "\n----------------------------------------------"
216
  out += f"\nWajib Pajak dengan NoPol {plate_number} ingin melakukan proses berikut:\n"
217
 
218
  for i, (res,desc,detail) in enumerate(zip(results, descriptions, result_details)):
219
+ out += f"{i+1}. {detail}\nDetail perhitungan: {desc.replace('harga_jual', str(res))}\n"
220
 
221
  out += "Estimasi biaya: "
222