SamiKoen commited on
Commit
37ed555
·
1 Parent(s): 1d3925f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,13 +56,13 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
56
  for product_info in products:
57
 
58
  if product_info[0] in input_words:
 
59
  new_msg = f"{product_info[2]} {product_info[1][0]} ve fiyatı EURO {product_info[1][1]}"
60
  print(new_msg)
61
-
62
  product_msg = {"role": "system", "content": new_msg}
63
  messages.append(product_msg)
64
 
65
- outofstock_msg = f"Bir önceki listeden başka {product_info} stoklarda bulunmamaktadır"
66
  noneproduct_msg = {"role": "system", "content": outofstock_msg}
67
  messages.append(noneproduct_msg)
68
 
 
56
  for product_info in products:
57
 
58
  if product_info[0] in input_words:
59
+ urun_msg = product_info[0]
60
  new_msg = f"{product_info[2]} {product_info[1][0]} ve fiyatı EURO {product_info[1][1]}"
61
  print(new_msg)
 
62
  product_msg = {"role": "system", "content": new_msg}
63
  messages.append(product_msg)
64
 
65
+ outofstock_msg = f"Bir önceki listeden başka {urun_msg} stoklarda bulunmamaktadır"
66
  noneproduct_msg = {"role": "system", "content": outofstock_msg}
67
  messages.append(noneproduct_msg)
68