Update app.py
Browse files
app.py
CHANGED
@@ -59,9 +59,11 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
|
|
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(
|
63 |
-
product_msg = {"role": "system", "content":
|
|
|
64 |
messages.append(product_msg)
|
|
|
65 |
for data in chatbot:
|
66 |
user = {}
|
67 |
user["role"] = "user"
|
|
|
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 |
+
message.append(noneproduct_msg)
|
67 |
for data in chatbot:
|
68 |
user = {}
|
69 |
user["role"] = "user"
|