Spaces:
Runtime error
Runtime error
pop the cost and rename reset
Browse files
app.py
CHANGED
@@ -34,6 +34,7 @@ def undo():
|
|
34 |
if len(st.session_state.messages) > 0:
|
35 |
st.session_state.messages.pop()
|
36 |
st.session_state.messages.pop()
|
|
|
37 |
st.rerun()
|
38 |
|
39 |
def share():
|
@@ -55,7 +56,7 @@ with st.sidebar:
|
|
55 |
if st.button("Undo"):
|
56 |
undo()
|
57 |
with cols[1]:
|
58 |
-
if st.button("
|
59 |
st.session_state.messages = []
|
60 |
clear_uploader()
|
61 |
|
|
|
34 |
if len(st.session_state.messages) > 0:
|
35 |
st.session_state.messages.pop()
|
36 |
st.session_state.messages.pop()
|
37 |
+
st.session_state.cost.pop()
|
38 |
st.rerun()
|
39 |
|
40 |
def share():
|
|
|
56 |
if st.button("Undo"):
|
57 |
undo()
|
58 |
with cols[1]:
|
59 |
+
if st.button("Restart"):
|
60 |
st.session_state.messages = []
|
61 |
clear_uploader()
|
62 |
|