JohnSmith9982 commited on
Commit
120129a
1 Parent(s): 97e1b45

Upload ChuanhuChatbot.py

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +8 -8
ChuanhuChatbot.py CHANGED
@@ -197,6 +197,14 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
197
  obj="toolbox"), elem_classes="close-btn")
198
  with gr.Tabs(elem_id="chuanhu-toolbox-tabs"):
199
  with gr.Tab(label=i18n("对话")):
 
 
 
 
 
 
 
 
200
  with gr.Accordion(label="Prompt", open=True):
201
  systemPromptTxt = gr.Textbox(
202
  show_label=True,
@@ -340,14 +348,6 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
340
  obj="box"), elem_classes="close-btn")
341
  with gr.Tabs(elem_id="chuanhu-setting-tabs"):
342
  with gr.Tab(label=i18n("模型")):
343
- keyTxt = gr.Textbox(
344
- show_label=True,
345
- placeholder=f"Your API-key...",
346
- value=hide_middle_chars(user_api_key.value),
347
- type="password",
348
- visible=not HIDE_MY_KEY,
349
- label="API-Key",
350
- )
351
  if multi_api_key:
352
  usageTxt = gr.Markdown(i18n(
353
  "多账号模式已开启,无需输入key,可直接开始对话"), elem_id="usage-display", elem_classes="insert-block", visible=show_api_billing)
 
197
  obj="toolbox"), elem_classes="close-btn")
198
  with gr.Tabs(elem_id="chuanhu-toolbox-tabs"):
199
  with gr.Tab(label=i18n("对话")):
200
+ keyTxt = gr.Textbox(
201
+ show_label=True,
202
+ placeholder=f"Your API-key...",
203
+ value=hide_middle_chars(user_api_key.value),
204
+ type="password",
205
+ visible=not HIDE_MY_KEY,
206
+ label="API-Key",
207
+ )
208
  with gr.Accordion(label="Prompt", open=True):
209
  systemPromptTxt = gr.Textbox(
210
  show_label=True,
 
348
  obj="box"), elem_classes="close-btn")
349
  with gr.Tabs(elem_id="chuanhu-setting-tabs"):
350
  with gr.Tab(label=i18n("模型")):
 
 
 
 
 
 
 
 
351
  if multi_api_key:
352
  usageTxt = gr.Markdown(i18n(
353
  "多账号模式已开启,无需输入key,可直接开始对话"), elem_id="usage-display", elem_classes="insert-block", visible=show_api_billing)