Update app.py
Browse files
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]
|