Phaneendrabayi commited on
Commit
3fe17ee
·
verified ·
1 Parent(s): 646fedb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -117,8 +117,8 @@ if "user_id" not in st.session_state:
117
  else:
118
  st.write(f"Logged in as: {st.session_state.username}")
119
  if st.button("Logout"):
120
- del st.session_state.user_id
121
- del st.session_state.username
122
 
123
  # Clear chat button
124
  if st.button("Clear Chat"):
 
117
  else:
118
  st.write(f"Logged in as: {st.session_state.username}")
119
  if st.button("Logout"):
120
+ st.session_state.user_id = None
121
+ st.session_state.username = None
122
 
123
  # Clear chat button
124
  if st.button("Clear Chat"):