yuntian-deng commited on
Commit
ac5f405
1 Parent(s): 361dc93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -25,9 +25,9 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
25
  payload = {
26
  "model": MODEL,
27
  "messages": [{"role": "user", "content": f"{inputs}"}],
28
- "temperature" : 1.0,
29
- "top_p":1.0,
30
- "n" : 1,
31
  "stream": True,
32
  "presence_penalty":0,
33
  "frequency_penalty":0,
@@ -61,9 +61,9 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
61
  payload = {
62
  "model": MODEL,
63
  "messages": messages,
64
- "temperature" : temperature,
65
  "top_p": top_p,
66
- "n" : 1,
67
  "stream": True,
68
  "presence_penalty":0,
69
  "frequency_penalty":0,
 
25
  payload = {
26
  "model": MODEL,
27
  "messages": [{"role": "user", "content": f"{inputs}"}],
28
+ "temperature": temperature,
29
+ "top_p": top_p,
30
+ "n": 1,
31
  "stream": True,
32
  "presence_penalty":0,
33
  "frequency_penalty":0,
 
61
  payload = {
62
  "model": MODEL,
63
  "messages": messages,
64
+ "temperature": temperature,
65
  "top_p": top_p,
66
+ "n": 1,
67
  "stream": True,
68
  "presence_penalty":0,
69
  "frequency_penalty":0,