Tuchuanhuhuhu commited on
Commit
be9f42e
·
1 Parent(s): 1c70651

将实时传输选项挪到高级里

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +3 -3
ChuanhuChatbot.py CHANGED
@@ -87,9 +87,6 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
87
  label=i18n("选择LoRA模型"), choices=[], multiselect=False, interactive=True, visible=False
88
  )
89
  with gr.Row():
90
- use_streaming_checkbox = gr.Checkbox(
91
- label=i18n("实时传输回答"), value=True, visible=ENABLE_STREAMING_OPTION
92
- )
93
  autogpt_mode = gr.Checkbox(label=i18n("AutoGPT 模式"), value=True)
94
  single_turn_checkbox = gr.Checkbox(label=i18n("单轮对话"), value=False)
95
  use_websearch_checkbox = gr.Checkbox(label=i18n("使用在线搜索"), value=False)
@@ -166,6 +163,9 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
166
  with gr.Tab(label=i18n("高级")):
167
  gr.Markdown(i18n("# ⚠️ 务必谨慎更改 ⚠️\n\n如果无法使用请恢复默认设置"))
168
  gr.HTML(APPEARANCE_SWITCHER, elem_classes="insert_block")
 
 
 
169
  with gr.Accordion(i18n("参数"), open=False):
170
  temperature_slider = gr.Slider(
171
  minimum=-0,
 
87
  label=i18n("选择LoRA模型"), choices=[], multiselect=False, interactive=True, visible=False
88
  )
89
  with gr.Row():
 
 
 
90
  autogpt_mode = gr.Checkbox(label=i18n("AutoGPT 模式"), value=True)
91
  single_turn_checkbox = gr.Checkbox(label=i18n("单轮对话"), value=False)
92
  use_websearch_checkbox = gr.Checkbox(label=i18n("使用在线搜索"), value=False)
 
163
  with gr.Tab(label=i18n("高级")):
164
  gr.Markdown(i18n("# ⚠️ 务必谨慎更改 ⚠️\n\n如果无法使用请恢复默认设置"))
165
  gr.HTML(APPEARANCE_SWITCHER, elem_classes="insert_block")
166
+ use_streaming_checkbox = gr.Checkbox(
167
+ label=i18n("实时传输回答"), value=True, visible=ENABLE_STREAMING_OPTION
168
+ )
169
  with gr.Accordion(i18n("参数"), open=False):
170
  temperature_slider = gr.Slider(
171
  minimum=-0,