kaleidoskop-hug commited on
Commit
28a3221
·
verified ·
1 Parent(s): cbc7527

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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