Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -105,6 +105,8 @@ def user_ask(state, chatbot1, chatbot2, textbox):
|
|
105 |
{"role": "bot1", "content": bot1_response},
|
106 |
{"role": "bot2", "content": bot2_response}
|
107 |
])
|
|
|
|
|
108 |
|
109 |
# Keep only the last 10 messages in history
|
110 |
state["history"] = state["history"][-10:]
|
|
|
105 |
{"role": "bot1", "content": bot1_response},
|
106 |
{"role": "bot2", "content": bot2_response}
|
107 |
])
|
108 |
+
chatbot1.append((user_input,bot1_response))
|
109 |
+
chatbot2.append((user_input,bot2_response))
|
110 |
|
111 |
# Keep only the last 10 messages in history
|
112 |
state["history"] = state["history"][-10:]
|