diff --git a/ChuanhuChatbot.py b/ChuanhuChatbot.py index 7712413c..7a118571 100644 --- a/ChuanhuChatbot.py +++ b/ChuanhuChatbot.py @@ -359,7 +359,7 @@ def create_new_model(): obj="box"), elem_classes="close-btn") with gr.Tabs(elem_id="chuanhu-setting-tabs"): # with gr.Tab(label=i18n("模型")): - + # model_select_dropdown = gr.Dropdown( # label=i18n("选择模型"), choices=MODELS, multiselect=False, value=MODELS[DEFAULT_MODEL], interactive=True # ) @@ -659,7 +659,7 @@ def create_greeting(request: gr.Request): top_p_slider, systemPromptTxt, user_name, current_model], [current_model, status_display, chatbot], show_progress=True) # Template - systemPromptTxt.input(set_system_prompt, [ + systemPromptTxt.change(set_system_prompt, [ current_model, systemPromptTxt], None) templateRefreshBtn.click(get_template_dropdown, None, [ templateFileSelectDropdown])