Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|