Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def user_ask(state, chatbot1, chatbot2, textbox):
|
|
100 |
|
101 |
# Update chat history in state
|
102 |
if "history" not in state:
|
103 |
-
state.update({'history': [])
|
104 |
state["history"].append([
|
105 |
{"role": "bot1", "content": bot1_response},
|
106 |
{"role": "bot2", "content": bot2_response}
|
|
|
100 |
|
101 |
# Update chat history in state
|
102 |
if "history" not in state:
|
103 |
+
state.update({'history': []})
|
104 |
state["history"].append([
|
105 |
{"role": "bot1", "content": bot1_response},
|
106 |
{"role": "bot2", "content": bot2_response}
|