kaleidoskop-hug
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -68,10 +68,9 @@ st.sidebar.markdown("*Generated content may be inaccurate or false.*")
|
|
68 |
@st.dialog("Edit Message")
|
69 |
def edit_message(position):
|
70 |
returnText = st.text_area("message:", value = st.session_state.messages[position-1]["content"])
|
|
|
71 |
if st.button("Submit"):
|
72 |
st.session_state.messages[position-1]["content"] = returnText
|
73 |
-
if st.button("Cancel"):
|
74 |
-
pass
|
75 |
st.rerun()
|
76 |
|
77 |
|
|
|
68 |
@st.dialog("Edit Message")
|
69 |
def edit_message(position):
|
70 |
returnText = st.text_area("message:", value = st.session_state.messages[position-1]["content"])
|
71 |
+
|
72 |
if st.button("Submit"):
|
73 |
st.session_state.messages[position-1]["content"] = returnText
|
|
|
|
|
74 |
st.rerun()
|
75 |
|
76 |
|