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