Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,13 +27,13 @@ def respond(
|
|
27 |
|
28 |
response = ""
|
29 |
|
30 |
-
for message in client.chat_completion
|
31 |
messages,
|
32 |
max_tokens=max_tokens,
|
|
|
33 |
stream=True,
|
34 |
temperature=temperature,
|
35 |
-
top_p=top_p
|
36 |
-
repetition_penalty=1.1,
|
37 |
):
|
38 |
token = message.choices[0].delta.content
|
39 |
|
|
|
27 |
|
28 |
response = ""
|
29 |
|
30 |
+
for message in client.chat_completion(
|
31 |
messages,
|
32 |
max_tokens=max_tokens,
|
33 |
+
repetition_penalty=1.1,
|
34 |
stream=True,
|
35 |
temperature=temperature,
|
36 |
+
top_p=top_p
|
|
|
37 |
):
|
38 |
token = message.choices[0].delta.content
|
39 |
|