nikos99n commited on
Commit
bcf1ca1
·
verified ·
1 Parent(s): fe6e823

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,8 +57,8 @@ my_system_instructions = "You are a helpful assistant. Be brief and concise. Pro
57
  first_message = "Hello, how can I help you today?"
58
 
59
  def delete_chat_messages():
60
- for key in st.session_state.keys():
61
- if key != "my_rag_text" and key != "my_system_instructions":
62
  del st.session_state[key]
63
  update_llm_model()
64
 
 
57
  first_message = "Hello, how can I help you today?"
58
 
59
  def delete_chat_messages():
60
+ for key in list(st.session_state.keys()):
61
+ if key not in {"my_rag_text", "my_system_instructions", "my_llm_model", "my_space"}:
62
  del st.session_state[key]
63
  update_llm_model()
64