rkoushikroy2 commited on
Commit
a595392
1 Parent(s): 5e22d67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -22,9 +22,7 @@ with gr.Blocks() as app:
22
  def reset_memory(session_data_fn):
23
  messages_archived = session_data_fn[0]
24
  if(len(messages_archived)>=21):
25
- messages_archived = [
26
- {"role": "system", "content": pre_text}
27
- ]
28
  session_data_fn[0] = messages_archived
29
  return session_data_fn
30
 
 
22
  def reset_memory(session_data_fn):
23
  messages_archived = session_data_fn[0]
24
  if(len(messages_archived)>=21):
25
+ messages_archived = messages_archived[0:1] + messages_archived[3:]
 
 
26
  session_data_fn[0] = messages_archived
27
  return session_data_fn
28