Update app.py
Browse files
app.py
CHANGED
@@ -115,8 +115,8 @@ with gr.Blocks(css=css) as demo:
|
|
115 |
#gr.Markdown("aqui Enter your OpenAI API Key. You can get one [here](https://platform.openai.com/account/api-keys).", elem_id="label")
|
116 |
user_token = gr.Textbox(value='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', placeholder="OpenAI API Key", type="password", show_label=False, visible=False)
|
117 |
#user_token = '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'
|
118 |
-
prompt_template = gr.Dropdown(label="Set a custom insruction for the chatbot:", choices=list(prompt_templates.keys())visible=False)
|
119 |
-
prompt_template_preview = gr.Markdown(elem_id="prompt_template_preview")
|
120 |
with gr.Accordion("Advanced parameters", open=False):
|
121 |
temperature = gr.Slider(minimum=0, maximum=2.0, value=0.7, step=0.1, label="Temperature", info="Higher = more creative/chaotic")
|
122 |
max_tokens = gr.Slider(minimum=100, maximum=4096, value=1000, step=1, label="Max tokens per response")
|
|
|
115 |
#gr.Markdown("aqui Enter your OpenAI API Key. You can get one [here](https://platform.openai.com/account/api-keys).", elem_id="label")
|
116 |
user_token = gr.Textbox(value='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', placeholder="OpenAI API Key", type="password", show_label=False, visible=False)
|
117 |
#user_token = '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'
|
118 |
+
prompt_template = gr.Dropdown(label="Set a custom insruction for the chatbot:", choices=list(prompt_templates.keys()),visible=False)
|
119 |
+
prompt_template_preview = gr.Markdown(elem_id="prompt_template_preview",visible=False)
|
120 |
with gr.Accordion("Advanced parameters", open=False):
|
121 |
temperature = gr.Slider(minimum=0, maximum=2.0, value=0.7, step=0.1, label="Temperature", info="Higher = more creative/chaotic")
|
122 |
max_tokens = gr.Slider(minimum=100, maximum=4096, value=1000, step=1, label="Max tokens per response")
|