Spaces:
Running
Running
yuntian-deng
commited on
Update app.py
Browse files
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"
|
40 |
-
"top_p":
|
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,
|