Mavhas commited on
Commit
b3f2bd3
·
verified ·
1 Parent(s): 5352193

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -192,4 +192,5 @@ if st.session_state.get('password_entered', False):
192
  with col1:
193
  st.markdown(f"<div style='background-color: #ffe6f2; padding: 10px; border-radius: 5px; margin-bottom: 10px;'>{message}</div>", unsafe_allow_html=True)
194
  with col2:
195
- if st.button("Delete", key=f"delete_message_{i}"):
 
 
192
  with col1:
193
  st.markdown(f"<div style='background-color: #ffe6f2; padding: 10px; border-radius: 5px; margin-bottom: 10px;'>{message}</div>", unsafe_allow_html=True)
194
  with col2:
195
+ if st.button("Delete", key=f"delete_message_{i}"):
196
+ del saved_data["messages"][i]