Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -402,6 +402,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="slate")) as maris:
|
|
| 402 |
placeholder="Enter your question here...",
|
| 403 |
scale=9
|
| 404 |
)
|
|
|
|
| 405 |
with gr.Row():
|
| 406 |
chatbot = gr.Chatbot(label="Maris")
|
| 407 |
|
|
@@ -416,6 +417,11 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="slate")) as maris:
|
|
| 416 |
history.append((user_message, result))
|
| 417 |
return history, history
|
| 418 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 419 |
query_box.submit(
|
| 420 |
chat_wrapper,
|
| 421 |
inputs=[query_box, state, model_dropdown],
|
|
|
|
| 402 |
placeholder="Enter your question here...",
|
| 403 |
scale=9
|
| 404 |
)
|
| 405 |
+
send_btn = gr.Button("Send", scale=1)
|
| 406 |
with gr.Row():
|
| 407 |
chatbot = gr.Chatbot(label="Maris")
|
| 408 |
|
|
|
|
| 417 |
history.append((user_message, result))
|
| 418 |
return history, history
|
| 419 |
|
| 420 |
+
send_btn.click(
|
| 421 |
+
chat_wrapper,
|
| 422 |
+
inputs=[query_box, state, model_dropdown],
|
| 423 |
+
outputs=[chatbot, state]
|
| 424 |
+
)
|
| 425 |
query_box.submit(
|
| 426 |
chat_wrapper,
|
| 427 |
inputs=[query_box, state, model_dropdown],
|