Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
18 |
|
19 |
for chunk in client.text_generation(
|
20 |
messages,
|
21 |
-
|
22 |
stream=True,
|
23 |
temperature=temperature,
|
24 |
top_p=top_p,
|
|
|
18 |
|
19 |
for chunk in client.text_generation(
|
20 |
messages,
|
21 |
+
max_new_tokens=max_tokens,
|
22 |
stream=True,
|
23 |
temperature=temperature,
|
24 |
top_p=top_p,
|