nxphi47 commited on
Commit
1cb08ed
1 Parent(s): 3daff46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)) >= 1000:
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(