Spaces:
Running
Running
change system prompt to Accordion
Browse files
app.py
CHANGED
|
@@ -266,14 +266,14 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=custom_css) as demo:
|
|
| 266 |
label="Store data",
|
| 267 |
info="You agree to the storage of your prompt and generated text for research and development purposes:",
|
| 268 |
)
|
| 269 |
-
|
| 270 |
-
with gr.Row():
|
| 271 |
-
with gr.Box(elem_id="chat-box"):
|
| 272 |
system_message = gr.Textbox(
|
| 273 |
elem_id="system-message",
|
| 274 |
placeholder="Below is a conversation between a human user and a helpful AI coding assistant.",
|
| 275 |
-
|
| 276 |
)
|
|
|
|
|
|
|
| 277 |
output = gr.Markdown()
|
| 278 |
chatbot = gr.Chatbot(elem_id="chat-message", label="Chat")
|
| 279 |
|
|
|
|
| 266 |
label="Store data",
|
| 267 |
info="You agree to the storage of your prompt and generated text for research and development purposes:",
|
| 268 |
)
|
| 269 |
+
with gr.Accordion(label="System Prompt", open=False, elem_id="parameters-accordion"):
|
|
|
|
|
|
|
| 270 |
system_message = gr.Textbox(
|
| 271 |
elem_id="system-message",
|
| 272 |
placeholder="Below is a conversation between a human user and a helpful AI coding assistant.",
|
| 273 |
+
show_label=False
|
| 274 |
)
|
| 275 |
+
with gr.Row():
|
| 276 |
+
with gr.Box():
|
| 277 |
output = gr.Markdown()
|
| 278 |
chatbot = gr.Chatbot(elem_id="chat-message", label="Chat")
|
| 279 |
|