yuntian-deng commited on
Commit
a2cf52f
·
verified ·
1 Parent(s): 4363e14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,8 +36,8 @@ def predict(inputs, top_p, temperature, chat_counter, chatbot, history, request:
36
  payload = {
37
  "model": MODEL,
38
  "messages": [{"role": "user", "content": f"{inputs}"}],
39
- "temperature" : 1.0,
40
- "top_p":1.0,
41
  "n" : 1,
42
  "stream": True,
43
  "presence_penalty":0,
 
36
  payload = {
37
  "model": MODEL,
38
  "messages": [{"role": "user", "content": f"{inputs}"}],
39
+ "temperature": temperature,
40
+ "top_p": top_p,
41
  "n" : 1,
42
  "stream": True,
43
  "presence_penalty":0,