Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -103,14 +103,14 @@ with gr.Blocks() as demo:
|
|
103 |
async for response, _ in respond(message, history, model_name):
|
104 |
yield response, ""
|
105 |
|
106 |
-
chatbot.
|
107 |
process_message,
|
108 |
-
inputs=[chatbot
|
109 |
-
outputs=[chatbot
|
110 |
scroll_to_output=True,
|
111 |
)
|
112 |
|
113 |
-
chatbot.
|
114 |
lambda: "",
|
115 |
inputs=[],
|
116 |
outputs=[thinking_output]
|
|
|
103 |
async for response, _ in respond(message, history, model_name):
|
104 |
yield response, ""
|
105 |
|
106 |
+
chatbot.submit(
|
107 |
process_message,
|
108 |
+
inputs=[chatbot, chatbot.chat_memory, model_selection],
|
109 |
+
outputs=[chatbot, thinking_output],
|
110 |
scroll_to_output=True,
|
111 |
)
|
112 |
|
113 |
+
chatbot.change(
|
114 |
lambda: "",
|
115 |
inputs=[],
|
116 |
outputs=[thinking_output]
|