yuntian-deng commited on
Commit
47a10f0
1 Parent(s): 41ec48f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,8 +25,8 @@ 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,
 
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,