Spaces:
Runtime error
Runtime error
~UI
Browse files
app.py
CHANGED
@@ -104,14 +104,14 @@ with gr.Blocks(css=css) as demo:
|
|
104 |
|
105 |
with gr.Row():
|
106 |
with gr.Column():
|
107 |
-
gr.Markdown("Enter your OpenAI API Key. You can get one [here](https://platform.openai.com/account/api-keys).", elem_id="label")
|
108 |
-
user_token = gr.Textbox(value='', placeholder="OpenAI API Key", type="password", show_label=False)
|
109 |
chatbot = gr.Chatbot(elem_id="chatbox")
|
110 |
input_message = gr.Textbox(show_label=False, placeholder="Enter text and press enter", visible=True).style(container=False)
|
111 |
btn_submit = gr.Button("Submit")
|
112 |
total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
|
113 |
btn_clear_conversation = gr.Button("π Start New Conversation")
|
114 |
with gr.Column():
|
|
|
|
|
115 |
prompt_template = gr.Dropdown(label="Set a custom insruction for the chatbot:", choices=list(prompt_templates.keys()))
|
116 |
prompt_template_preview = gr.Markdown(elem_id="prompt_template_preview")
|
117 |
with gr.Accordion("Advanced parameters", open=False):
|
|
|
104 |
|
105 |
with gr.Row():
|
106 |
with gr.Column():
|
|
|
|
|
107 |
chatbot = gr.Chatbot(elem_id="chatbox")
|
108 |
input_message = gr.Textbox(show_label=False, placeholder="Enter text and press enter", visible=True).style(container=False)
|
109 |
btn_submit = gr.Button("Submit")
|
110 |
total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
|
111 |
btn_clear_conversation = gr.Button("π Start New Conversation")
|
112 |
with gr.Column():
|
113 |
+
gr.Markdown("Enter your OpenAI API Key. You can get one [here](https://platform.openai.com/account/api-keys).", elem_id="label")
|
114 |
+
user_token = gr.Textbox(value='', 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.Markdown(elem_id="prompt_template_preview")
|
117 |
with gr.Accordion("Advanced parameters", open=False):
|