Spaces:
Running
Running
yuntian-deng
commited on
Commit
•
ac5f405
1
Parent(s):
361dc93
Update app.py
Browse files
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"
|
29 |
-
"top_p":
|
30 |
-
"n"
|
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"
|
65 |
"top_p": top_p,
|
66 |
-
"n"
|
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,
|