Spaces:
Sleeping
Sleeping
Update app.py
Browse filesadded rerun after erasing an item from the new basket
app.py
CHANGED
@@ -1009,6 +1009,7 @@ elif page == "💡 Recomendación de Artículos":
|
|
1009 |
if st.button("❌", key=f"remove_{code}"):
|
1010 |
st.session_state['new_basket'].remove(code)
|
1011 |
st.success(f"El artículo con código {code} ha sido eliminado de la cesta.")
|
|
|
1012 |
|
1013 |
# Botón para añadir cesta al histórico
|
1014 |
if st.button("📦 Añadir cesta al histórico"):
|
|
|
1009 |
if st.button("❌", key=f"remove_{code}"):
|
1010 |
st.session_state['new_basket'].remove(code)
|
1011 |
st.success(f"El artículo con código {code} ha sido eliminado de la cesta.")
|
1012 |
+
st.rerun()
|
1013 |
|
1014 |
# Botón para añadir cesta al histórico
|
1015 |
if st.button("📦 Añadir cesta al histórico"):
|