kaleidoskop-hug commited on
Commit
f786670
1 Parent(s): b96334a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ for message in st.session_state.messages:
99
  with st.chat_message(message["role"]):
100
  col1, col2 = st.columns([9,1])
101
  col1.markdown(message["content"])
102
- col2.button("remove", key="button_remove_message", args=[pos], on_click=remove_message)
103
 
104
 
105
  if "remove" not in st.session_state:
 
99
  with st.chat_message(message["role"]):
100
  col1, col2 = st.columns([9,1])
101
  col1.markdown(message["content"])
102
+ col2.button("remove", key="button_remove_message_"+str(pos), args=[pos], on_click=remove_message)
103
 
104
 
105
  if "remove" not in st.session_state: