kaleidoskop-hug commited on
Commit
cbc7527
1 Parent(s): a93d19b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -64,11 +64,7 @@ st.sidebar.button('Reset Chat', on_click=reset_conversation) #Reset button
64
  st.sidebar.write(f"You're now chatting with **{selected_model}**")
65
  st.sidebar.markdown("*Generated content may be inaccurate or false.*")
66
 
67
- if st.button("Submit"):
68
- return returnText
69
- if st.button("Cancel"):
70
- return ""
71
-
72
  @st.dialog("Edit Message")
73
  def edit_message(position):
74
  returnText = st.text_area("message:", value = st.session_state.messages[position-1]["content"])
 
64
  st.sidebar.write(f"You're now chatting with **{selected_model}**")
65
  st.sidebar.markdown("*Generated content may be inaccurate or false.*")
66
 
67
+ # Edit dialog for editing a message
 
 
 
 
68
  @st.dialog("Edit Message")
69
  def edit_message(position):
70
  returnText = st.text_area("message:", value = st.session_state.messages[position-1]["content"])