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