AllenYkl commited on
Commit
ada3f1c
·
1 Parent(s): bcdf71c

Update bin_public/app/Chatbot.py

Browse files
Files changed (1) hide show
  1. bin_public/app/Chatbot.py +2 -2
bin_public/app/Chatbot.py CHANGED
@@ -63,7 +63,7 @@ with gr.Blocks(css=customCSS) as demo:
63
  promptTemplates = gr.State(load_template(get_template_names(plain=True)[0], mode=2))
64
  function_template = gr.State(function)
65
  interviewer_prompt = gr.Textbox(INTERVIEWER_PROMPT, visible=False)
66
- patient_prompt = gr.Textbox("", visible=True)
67
  file_list_m = gr.State(listing_files(repo_id))
68
  user_api_key = gr.State(my_api_key)
69
  user_question = gr.State("")
@@ -125,7 +125,7 @@ with gr.Blocks(css=customCSS) as demo:
125
  index_files = gr.Files(label="上传索引文件", type="file", multiple=True, visible=False)
126
  # prompt
127
  systemPromptTxt = gr.Textbox(show_label=True, placeholder=f"在这里输入System Prompt...",
128
- label="System prompt", value=initial_prompt, visible=True).style(
129
  container=True)
130
  templateFileSelectDropdown = gr.Dropdown(label="选择Prompt模板集合文件",
131
  choices=get_template_names(plain=True),
 
63
  promptTemplates = gr.State(load_template(get_template_names(plain=True)[0], mode=2))
64
  function_template = gr.State(function)
65
  interviewer_prompt = gr.Textbox(INTERVIEWER_PROMPT, visible=False)
66
+ patient_prompt = gr.Textbox("", visible=False)
67
  file_list_m = gr.State(listing_files(repo_id))
68
  user_api_key = gr.State(my_api_key)
69
  user_question = gr.State("")
 
125
  index_files = gr.Files(label="上传索引文件", type="file", multiple=True, visible=False)
126
  # prompt
127
  systemPromptTxt = gr.Textbox(show_label=True, placeholder=f"在这里输入System Prompt...",
128
+ label="System prompt", value=initial_prompt, visible=False).style(
129
  container=True)
130
  templateFileSelectDropdown = gr.Dropdown(label="选择Prompt模板集合文件",
131
  choices=get_template_names(plain=True),