Skip to content

Commit

Permalink
bugfix: fix #1033 预置prompt有时无效
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Jan 21, 2024
1 parent 74da1a0 commit 4cadbd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ChuanhuChatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
# )
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit 4cadbd1

Please sign in to comment.