Spaces:
Runtime error
Runtime error
Update ChuanhuChatbot.py
Browse files- ChuanhuChatbot.py +2 -2
ChuanhuChatbot.py
CHANGED
@@ -197,12 +197,12 @@ with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
|
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 , visible=False): #, visible=False
|
208 |
systemPromptTxt = gr.Textbox(
|
|
|
197 |
with gr.Tabs(elem_id="chuanhu-toolbox-tabs"):
|
198 |
with gr.Tab(label=i18n("对话")):
|
199 |
keyTxt = gr.Textbox(
|
200 |
+
show_label=False, #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 , visible=False): #, visible=False
|
208 |
systemPromptTxt = gr.Textbox(
|