Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ 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 |
-
print(product_info[0])
|
60 |
new_msg = f"{product_info[2]} {product_info[1][0]} ve fiyatı EURO {product_info[1][1]}"
|
61 |
product_msg = {"role": "system", "content": new_msg}
|
62 |
messages.append(product_msg)
|
@@ -76,7 +76,7 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
|
|
76 |
|
77 |
|
78 |
|
79 |
-
payload = {"model": "gpt-4", "messages": messages
|
80 |
"top_p": 0, "n": 1, "stream": True, "presence_penalty": 0, "frequency_penalty": 0,}
|
81 |
|
82 |
chat_counter += 1
|
|
|
56 |
for product_info in products:
|
57 |
|
58 |
if product_info[0] in input_words:
|
59 |
+
print(product_info[0], product_info[2], product_info[1][0])
|
60 |
new_msg = f"{product_info[2]} {product_info[1][0]} ve fiyatı EURO {product_info[1][1]}"
|
61 |
product_msg = {"role": "system", "content": new_msg}
|
62 |
messages.append(product_msg)
|
|
|
76 |
|
77 |
|
78 |
|
79 |
+
payload = {"model": "gpt-4", "messages": messages, "temperature": 0.5,
|
80 |
"top_p": 0, "n": 1, "stream": True, "presence_penalty": 0, "frequency_penalty": 0,}
|
81 |
|
82 |
chat_counter += 1
|