EsoCode commited on
Commit
60e380f
Β·
1 Parent(s): 1d5e0f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,7 +111,7 @@ with gr.Blocks(css=css) as demo:
111
  total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
112
  btn_clear_conversation = gr.Button("πŸ”ƒ Start New Conversation")
113
  with gr.Column():
114
- user_token = gr.Textbox(value='open_ai_key', placeholder="OpenAI API Key", type="password", show_label=False)
115
  prompt_template = gr.Dropdown(label="Set a custom insruction for the chatbot:", choices=list(prompt_templates.keys()))
116
  prompt_template_preview = gr.Textbox(value="prompt_template_preview", type="text", show_label=False)
117
  with gr.Accordion("Advanced parameters", open=False):
 
111
  total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
112
  btn_clear_conversation = gr.Button("πŸ”ƒ Start New Conversation")
113
  with gr.Column():
114
+ user_token = gr.Textbox(value='st.secrets["open_ai_key"]', placeholder="OpenAI API Key", type="password", show_label=False)
115
  prompt_template = gr.Dropdown(label="Set a custom insruction for the chatbot:", choices=list(prompt_templates.keys()))
116
  prompt_template_preview = gr.Textbox(value="prompt_template_preview", type="text", show_label=False)
117
  with gr.Accordion("Advanced parameters", open=False):