rwitz commited on
Commit
eecc81b
1 Parent(s): d68c58a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -186,8 +186,8 @@ async def user_ask(state, chatbot1, chatbot2, textbox, character_name, character
186
  {"role": "user", "content": user_input}])
187
  state["history"][1].extend([
188
  {"role": "user", "content": user_input}])
189
- #if len(state["history"])>20:
190
- #state["history"] = state["history"][-20:]
191
  # Chat with bots
192
  bot1_response, bot2_response = await chat_with_bots(user_input, state, character_name, character_description, user_name)
193
 
 
186
  {"role": "user", "content": user_input}])
187
  state["history"][1].extend([
188
  {"role": "user", "content": user_input}])
189
+ if len(state["history"])>20:
190
+ state["history"] = state["history"][-20:]
191
  # Chat with bots
192
  bot1_response, bot2_response = await chat_with_bots(user_input, state, character_name, character_description, user_name)
193