Update app.py
Browse files
app.py
CHANGED
@@ -65,15 +65,15 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
|
|
65 |
temp["content"] = inputs
|
66 |
messages.append(temp)
|
67 |
#messages
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
|
78 |
chat_counter+=1
|
79 |
|
|
|
65 |
temp["content"] = inputs
|
66 |
messages.append(temp)
|
67 |
#messages
|
68 |
+
payload = {
|
69 |
+
"model": "gpt-3.5-turbo",
|
70 |
+
"messages": messages, # Of the type of [{"role": "user", "content": f"{inputs}"}],
|
71 |
+
"temperature" : 0.1,
|
72 |
+
"top_p": 1.0,
|
73 |
+
"n" : 1,
|
74 |
+
"stream": True,
|
75 |
+
"presence_penalty":2,
|
76 |
+
"frequency_penalty":2,}
|
77 |
|
78 |
chat_counter+=1
|
79 |
|