jdesiree commited on
Commit
1e45728
·
verified ·
1 Parent(s): f3470b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1336,7 +1336,7 @@ def add_user_message(message, chat_history, conversation_state):
1336
  new_chat_history = chat_history + [{"role": "user", "content": message}]
1337
 
1338
  # Update global state for persistence
1339
- global_state_manager.update_conversation_state(new_chat_history, new_conversation_state)
1340
 
1341
  log_step("add_user_message", callback_start)
1342
 
@@ -1438,7 +1438,7 @@ def generate_response(chat_history, conversation_state):
1438
  new_conversation_state = conversation_state + [{"role": "assistant", "content": final_response}]
1439
 
1440
  # Update global state with final conversation
1441
- global_state_manager.update_conversation_state(chat_history, new_conversation_state)
1442
 
1443
  # Final yield with complete states
1444
  yield chat_history, new_conversation_state
 
1336
  new_chat_history = chat_history + [{"role": "user", "content": message}]
1337
 
1338
  # Update global state for persistence
1339
+ # global_state_manager.update_conversation_state(new_chat_history, new_conversation_state)
1340
 
1341
  log_step("add_user_message", callback_start)
1342
 
 
1438
  new_conversation_state = conversation_state + [{"role": "assistant", "content": final_response}]
1439
 
1440
  # Update global state with final conversation
1441
+ # global_state_manager.update_conversation_state(chat_history, new_conversation_state)
1442
 
1443
  # Final yield with complete states
1444
  yield chat_history, new_conversation_state