Hmjz100 commited on
Commit
f8cf18b
·
1 Parent(s): 490f507

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -138,12 +138,12 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
138
  # 用户需要提供自己的 ChatGPT API 密钥,不再由 Huggingface 提供
139
  with gr.Row():
140
  with gr.Accordion(label="OpenAI API 密钥", open=False):
141
- openai_gptapi_key = gr.Textbox(
142
- label="API 密钥",
143
- type="password",
144
- placeholder="pk-this-is-a-real-free-pool-token-for-everyone",
145
- info="您可以提供自己的 OpenAI ChatGPT API 密钥,或者使用自带的秘钥",
146
- )
147
  with gr.Accordion(label="系统消息", open=False):
148
  system_msg = gr.Textbox(label="指示 AI 助手设置其行为", info=system_msg_info, value="", placeholder="在这里输入..")
149
  accordion_msg = gr.HTML(value="🚧 要修改系统消息,你必须刷新页面", visible=False)
 
138
  # 用户需要提供自己的 ChatGPT API 密钥,不再由 Huggingface 提供
139
  with gr.Row():
140
  with gr.Accordion(label="OpenAI API 密钥", open=False):
141
+ openai_gptapi_key = gr.Textbox(
142
+ label="API 密钥",
143
+ type="password",
144
+ placeholder="pk-this-is-a-real-free-pool-token-for-everyone",
145
+ info="您可以提供自己的 OpenAI ChatGPT API 密钥,或者使用自带的秘钥",
146
+ )
147
  with gr.Accordion(label="系统消息", open=False):
148
  system_msg = gr.Textbox(label="指示 AI 助手设置其行为", info=system_msg_info, value="", placeholder="在这里输入..")
149
  accordion_msg = gr.HTML(value="🚧 要修改系统消息,你必须刷新页面", visible=False)