Spaces:
Runtime error
Runtime error
improve interface
Browse files
app.py
CHANGED
|
@@ -88,9 +88,6 @@ with gr.Blocks() as demo:
|
|
| 88 |
with gr.Column(scale=3):
|
| 89 |
chatbot = gr.Chatbot(height=400)
|
| 90 |
msg = gr.Textbox(label="User Input", placeholder="Ask a question or request a task...")
|
| 91 |
-
with gr.Row():
|
| 92 |
-
send = gr.Button("Send")
|
| 93 |
-
clear = gr.Button("Clear")
|
| 94 |
with gr.Accordion(label="π§ͺAdvanced Settings", open=False):
|
| 95 |
system_message = gr.Textbox(
|
| 96 |
label="System Message",
|
|
@@ -115,6 +112,10 @@ with gr.Blocks() as demo:
|
|
| 115 |
lines=15,
|
| 116 |
language="json"
|
| 117 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
|
| 119 |
def user(user_message, history):
|
| 120 |
return "", history + [[user_message, None]]
|
|
|
|
| 88 |
with gr.Column(scale=3):
|
| 89 |
chatbot = gr.Chatbot(height=400)
|
| 90 |
msg = gr.Textbox(label="User Input", placeholder="Ask a question or request a task...")
|
|
|
|
|
|
|
|
|
|
| 91 |
with gr.Accordion(label="π§ͺAdvanced Settings", open=False):
|
| 92 |
system_message = gr.Textbox(
|
| 93 |
label="System Message",
|
|
|
|
| 112 |
lines=15,
|
| 113 |
language="json"
|
| 114 |
)
|
| 115 |
+
with gr.Row():
|
| 116 |
+
clear = gr.Button("Clear")
|
| 117 |
+
send = gr.Button("Send")
|
| 118 |
+
|
| 119 |
|
| 120 |
def user(user_message, history):
|
| 121 |
return "", history + [[user_message, None]]
|