rwitz commited on
Commit
25a4d3c
1 Parent(s): 0db6418

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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:]