fb700 commited on
Commit
de6de7f
1 Parent(s): 74767ed

Upload 132 files

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -66,7 +66,7 @@ def main():
66
  with gr_L2(scale=1):
67
  with gr.Accordion("输入区", open=True) as area_input_primary:
68
  with gr.Row():
69
- txt = gr.Textbox(show_label=False, lines=2, placeholder="请直接输入问题。").style(container=False)
70
  with gr.Row():
71
  submitBtn = gr.Button("提交", variant="primary")
72
  with gr.Row():
@@ -122,7 +122,6 @@ def main():
122
  stopBtn2 = gr.Button("停止", variant="secondary"); stopBtn2.style(size="sm")
123
  clearBtn2 = gr.Button("清除", variant="secondary", visible=False); clearBtn2.style(size="sm")
124
  # 功能区显示开关与功能区的互动
125
-
126
  def fn_area_visibility(a):
127
  ret = {}
128
  ret.update({area_basic_fn: gr.update(visible=("基础功能区" in a))})
@@ -213,4 +212,4 @@ def main():
213
  # blocked_paths=["config.py","config_private.py","docker-compose.yml","Dockerfile"])
214
 
215
  if __name__ == "__main__":
216
- main()
 
66
  with gr_L2(scale=1):
67
  with gr.Accordion("输入区", open=True) as area_input_primary:
68
  with gr.Row():
69
+ txt = gr.Textbox(show_label=False, lines=2, placeholder="输入问题或API密钥,输入多个密钥时,用英文逗号间隔。支持OpenAI密钥和API2D密钥共存。").style(container=False)
70
  with gr.Row():
71
  submitBtn = gr.Button("提交", variant="primary")
72
  with gr.Row():
 
122
  stopBtn2 = gr.Button("停止", variant="secondary"); stopBtn2.style(size="sm")
123
  clearBtn2 = gr.Button("清除", variant="secondary", visible=False); clearBtn2.style(size="sm")
124
  # 功能区显示开关与功能区的互动
 
125
  def fn_area_visibility(a):
126
  ret = {}
127
  ret.update({area_basic_fn: gr.update(visible=("基础功能区" in a))})
 
212
  # blocked_paths=["config.py","config_private.py","docker-compose.yml","Dockerfile"])
213
 
214
  if __name__ == "__main__":
215
+ main()