Update app.py
Browse files
app.py
CHANGED
@@ -29,12 +29,12 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
|
|
29 |
payload = {
|
30 |
"model": "gpt-3.5-turbo",
|
31 |
"messages": initial_message ,
|
32 |
-
"temperature" : 1
|
33 |
"top_p":1.0,
|
34 |
"n" : 1,
|
35 |
"stream": True,
|
36 |
-
"presence_penalty":
|
37 |
-
"frequency_penalty":
|
38 |
}
|
39 |
print(f"chat_counter - {chat_counter}")
|
40 |
else: #if chat_counter != 0 :
|
@@ -60,8 +60,8 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
|
|
60 |
"top_p": top_p, #1.0,
|
61 |
"n" : 1,
|
62 |
"stream": True,
|
63 |
-
"presence_penalty":
|
64 |
-
"frequency_penalty":
|
65 |
|
66 |
chat_counter+=1
|
67 |
|
|
|
29 |
payload = {
|
30 |
"model": "gpt-3.5-turbo",
|
31 |
"messages": initial_message ,
|
32 |
+
"temperature" : 0.1,
|
33 |
"top_p":1.0,
|
34 |
"n" : 1,
|
35 |
"stream": True,
|
36 |
+
"presence_penalty":2,
|
37 |
+
"frequency_penalty":2,
|
38 |
}
|
39 |
print(f"chat_counter - {chat_counter}")
|
40 |
else: #if chat_counter != 0 :
|
|
|
60 |
"top_p": top_p, #1.0,
|
61 |
"n" : 1,
|
62 |
"stream": True,
|
63 |
+
"presence_penalty":2,
|
64 |
+
"frequency_penalty":2,}
|
65 |
|
66 |
chat_counter+=1
|
67 |
|