Spaces:
Runtime error
Runtime error
Commit
·
d8908fd
1
Parent(s):
f1de751
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
|
|
| 27 |
|
| 28 |
if chat_counter == 0 :
|
| 29 |
payload = {
|
| 30 |
-
"model": "gpt-
|
| 31 |
"messages": initial_message ,
|
| 32 |
"temperature" : 1.0,
|
| 33 |
"top_p":1.0,
|
|
@@ -54,7 +54,7 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
|
|
| 54 |
messages.append(temp)
|
| 55 |
#messages
|
| 56 |
payload = {
|
| 57 |
-
"model": "gpt-
|
| 58 |
"messages": messages, # Of the type of [{"role": "user", "content": f"{inputs}"}],
|
| 59 |
"temperature" : temperature, #1.0,
|
| 60 |
"top_p": top_p, #1.0,
|
|
|
|
| 27 |
|
| 28 |
if chat_counter == 0 :
|
| 29 |
payload = {
|
| 30 |
+
"model": "gpt-3.5-turbo",
|
| 31 |
"messages": initial_message ,
|
| 32 |
"temperature" : 1.0,
|
| 33 |
"top_p":1.0,
|
|
|
|
| 54 |
messages.append(temp)
|
| 55 |
#messages
|
| 56 |
payload = {
|
| 57 |
+
"model": "gpt-3.5-turbo",
|
| 58 |
"messages": messages, # Of the type of [{"role": "user", "content": f"{inputs}"}],
|
| 59 |
"temperature" : temperature, #1.0,
|
| 60 |
"top_p": top_p, #1.0,
|