Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1082,7 +1082,7 @@ def chat_response_stream_multiturn(
|
|
1082 |
message, history, sys_prompt=system_prompt
|
1083 |
)
|
1084 |
|
1085 |
-
if len(tokenizer.encode(full_prompt, add_special_tokens=False)) >=
|
1086 |
raise gr.Error(f"Conversation or prompt is too long, please clear the chatbox or try shorter input.")
|
1087 |
|
1088 |
sampling_params = SamplingParams(
|
|
|
1082 |
message, history, sys_prompt=system_prompt
|
1083 |
)
|
1084 |
|
1085 |
+
if len(tokenizer.encode(full_prompt, add_special_tokens=False)) >= 4050:
|
1086 |
raise gr.Error(f"Conversation or prompt is too long, please clear the chatbox or try shorter input.")
|
1087 |
|
1088 |
sampling_params = SamplingParams(
|