SamiKoen commited on
Commit
f7d68ea
·
1 Parent(s): 9721f1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
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
- 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
 
 
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