Spaces:
Runtime error
Runtime error
Commit
Β·
ca0d588
1
Parent(s):
8d4bf4d
Update app.py
Browse files
app.py
CHANGED
@@ -111,8 +111,8 @@ 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 |
-
|
115 |
-
|
116 |
prompt_template = gr.Dropdown(label="Choose a guru:", choices=list(prompt_templates.keys()))
|
117 |
prompt_template_preview = gr.Markdown(elem_id="prompt_template_preview")
|
118 |
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 |
+
gr.Markdown("Enter your OpenAI API Key. You can get one [here](https://platform.openai.com/account/api-keys).", elem_id="label")
|
115 |
+
user_token = gr.Textbox(value='', placeholder="OpenAI API Key", type="password", show_label=False)
|
116 |
prompt_template = gr.Dropdown(label="Choose a guru:", choices=list(prompt_templates.keys()))
|
117 |
prompt_template_preview = gr.Markdown(elem_id="prompt_template_preview")
|
118 |
with gr.Accordion("Advanced parameters", open=False):
|