Neon-AI commited on
Commit
0c8e5e7
·
verified ·
1 Parent(s): 84b2dc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,7 @@ MEMORY (internal)
101
  # ================= MEMORY UPDATE =================
102
  def maybe_update_memory(user_text: str, assistant_text: str):
103
  # Update memory every 4 user messages (cheap + stable)
104
- if len(st.session_state.history) % 4 != 0:
105
  return
106
 
107
  memory_prompt = f"""
 
101
  # ================= MEMORY UPDATE =================
102
  def maybe_update_memory(user_text: str, assistant_text: str):
103
  # Update memory every 4 user messages (cheap + stable)
104
+ if len(st.session_state.history) % 1 != 0:
105
  return
106
 
107
  memory_prompt = f"""