SamiKoen commited on
Commit
5f418f1
·
1 Parent(s): 104951a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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.0,
33
  "top_p":1.0,
34
  "n" : 1,
35
  "stream": True,
36
- "presence_penalty":0,
37
- "frequency_penalty":0,
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":0,
64
- "frequency_penalty":0,}
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