Spaces:
Sleeping
Sleeping
Merge pull request #17 from Keldos-Li/hide-api
Browse files- ChuanhuChatbot.py +1 -1
ChuanhuChatbot.py
CHANGED
@@ -142,7 +142,7 @@ def set_apikey(new_api_key, myKey):
|
|
142 |
|
143 |
|
144 |
with gr.Blocks() as demo:
|
145 |
-
keyTxt = gr.Textbox(show_label=True, placeholder=f"在这里输入你的API-key...", value=my_api_key, label="API Key").style(container=True)
|
146 |
chatbot = gr.Chatbot().style(color_map=("#1D51EE", "#585A5B"))
|
147 |
context = gr.State([])
|
148 |
systemPrompt = gr.State(update_system(initial_prompt))
|
|
|
142 |
|
143 |
|
144 |
with gr.Blocks() as demo:
|
145 |
+
keyTxt = gr.Textbox(show_label=True, placeholder=f"在这里输入你的API-key...", value=str(my_api_key[:4] + "..." + my_api_key[-4:]), label="API Key").style(container=True)
|
146 |
chatbot = gr.Chatbot().style(color_map=("#1D51EE", "#585A5B"))
|
147 |
context = gr.State([])
|
148 |
systemPrompt = gr.State(update_system(initial_prompt))
|