Spaces:
Sleeping
Sleeping
Commit
·
6939cbd
1
Parent(s):
c907a7a
Update app.py
Browse files
app.py
CHANGED
@@ -1273,7 +1273,7 @@ def chat_response_stream_multiturn(
|
|
1273 |
assert len(gen) == 1, f'{gen}'
|
1274 |
item = next(iter(gen.values()))
|
1275 |
cur_out = item.outputs[0].text
|
1276 |
-
|
1277 |
if j >= max_tokens - 2:
|
1278 |
gr.Warning(f'The response hits limit of {max_tokens} tokens. Consider increase the max tokens parameter in the Additional Inputs.')
|
1279 |
|
|
|
1273 |
assert len(gen) == 1, f'{gen}'
|
1274 |
item = next(iter(gen.values()))
|
1275 |
cur_out = item.outputs[0].text
|
1276 |
+
cur_out = "Our system is under maintenance, will be back soon!"
|
1277 |
if j >= max_tokens - 2:
|
1278 |
gr.Warning(f'The response hits limit of {max_tokens} tokens. Consider increase the max tokens parameter in the Additional Inputs.')
|
1279 |
|