Tuchuanhuhuhu commited on
Commit
54e7067
1 Parent(s): 824026d

加入了隐藏密钥输入框的选项

Browse files
Files changed (1) hide show
  1. ChuanhuChatbot.py +1 -1
ChuanhuChatbot.py CHANGED
@@ -238,7 +238,7 @@ description = """<div align=center>
238
  with gr.Blocks() as demo:
239
  gr.HTML(title)
240
  keyTxt = gr.Textbox(show_label=True, placeholder=f"在这里输入你的OpenAI API-key...",
241
- value=my_api_key, label="API Key", type="password", visible=HIDE_MY_KEY).style(container=True)
242
  chatbot = gr.Chatbot() # .style(color_map=("#1D51EE", "#585A5B"))
243
  history = gr.State([])
244
  promptTemplates = gr.State({})
 
238
  with gr.Blocks() as demo:
239
  gr.HTML(title)
240
  keyTxt = gr.Textbox(show_label=True, placeholder=f"在这里输入你的OpenAI API-key...",
241
+ value=my_api_key, label="API Key", type="password", visible=not HIDE_MY_KEY).style(container=True)
242
  chatbot = gr.Chatbot() # .style(color_map=("#1D51EE", "#585A5B"))
243
  history = gr.State([])
244
  promptTemplates = gr.State({})