Tuchuanhuhuhu commited on
Commit
a45e317
·
1 Parent(s): 73d933e

修改用户主动总结对话时的token上限为软上限的一半

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +1 -1
ChuanhuChatbot.py CHANGED
@@ -318,7 +318,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
318
  token_count,
319
  top_p,
320
  temperature,
321
- gr.State(max_token_streaming if use_streaming_checkbox.value else max_token_all),
322
  model_select_dropdown,
323
  language_select_dropdown,
324
  ],
 
318
  token_count,
319
  top_p,
320
  temperature,
321
+ gr.State(max_token_streaming//2 if use_streaming_checkbox.value else max_token_all//2),
322
  model_select_dropdown,
323
  language_select_dropdown,
324
  ],