From 4cadbd181af14070971e0b2506018783b74958df Mon Sep 17 00:00:00 2001 From: Tuchuanhuhuhu Date: Sun, 21 Jan 2024 16:01:28 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20fix=20#1033=20=E9=A2=84=E7=BD=AEpromp?= =?UTF-8?q?t=E6=9C=89=E6=97=B6=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChuanhuChatbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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])