SamiKoen commited on
Commit
e781c31
1 Parent(s): 60d0118

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -57,13 +57,14 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
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
- outofstock_msg = f"Bir önceki listeden başka {product_info[0]} stoklarda bulunmamaktadır"
61
- full_msg = new_msg + outofstock_msg
62
  print(new_msg)
63
  product_msg = {"role": "system", "content": new_msg}
64
- noneproduct_msg = {"role": "system", "content": outofstock_msg}
65
  messages.append(product_msg)
66
- messages.append(noneproduct_msg)
 
 
 
 
67
  for data in chatbot:
68
  user = {}
69
  user["role"] = "user"
 
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
  product_msg = {"role": "system", "content": new_msg}
 
62
  messages.append(product_msg)
63
+
64
+ outofstock_msg = f"Bir önceki listeden başka {product_info[0]} stoklarda bulunmamaktadır"
65
+ noneproduct_msg = {"role": "system", "content": outofstock_msg}
66
+ messages.append(noneproduct_msg)
67
+
68
  for data in chatbot:
69
  user = {}
70
  user["role"] = "user"