MZhaovo commited on
Commit
e5c6c88
·
1 Parent(s): cb6fe1c

将单论对话等也改为开关

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +2 -2
ChuanhuChatbot.py CHANGED
@@ -96,8 +96,8 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
96
  label=i18n("选择LoRA模型"), choices=[], multiselect=False, interactive=True, visible=False
97
  )
98
  with gr.Row():
99
- single_turn_checkbox = gr.Checkbox(label=i18n("单轮对话"), value=False)
100
- use_websearch_checkbox = gr.Checkbox(label=i18n("使用在线搜索"), value=False)
101
  language_select_dropdown = gr.Dropdown(
102
  label=i18n("选择回复语言(针对搜索&索引功能)"),
103
  choices=REPLY_LANGUAGES,
 
96
  label=i18n("选择LoRA模型"), choices=[], multiselect=False, interactive=True, visible=False
97
  )
98
  with gr.Row():
99
+ single_turn_checkbox = gr.Checkbox(label=i18n("单轮对话"), value=False, elem_classes="switch_checkbox")
100
+ use_websearch_checkbox = gr.Checkbox(label=i18n("使用在线搜索"), value=False, elem_classes="switch_checkbox")
101
  language_select_dropdown = gr.Dropdown(
102
  label=i18n("选择回复语言(针对搜索&索引功能)"),
103
  choices=REPLY_LANGUAGES,