kaleidoskop-hug
commited on
Commit
•
d9dd27c
1
Parent(s):
0201923
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def edit_message(position):
|
|
75 |
if st.session_state.messages[position-1]["role"] == "user":
|
76 |
if st.button("Save & Retry"):
|
77 |
st.session_state.messages[position-1]["content"] = returnText
|
78 |
-
del session_state.messages[position-1:]
|
79 |
st.session_state.instant_request = True
|
80 |
st.rerun()
|
81 |
|
|
|
75 |
if st.session_state.messages[position-1]["role"] == "user":
|
76 |
if st.button("Save & Retry"):
|
77 |
st.session_state.messages[position-1]["content"] = returnText
|
78 |
+
del st.session_state.messages[position-1:]
|
79 |
st.session_state.instant_request = True
|
80 |
st.rerun()
|
81 |
|