kaleidoskop-hug commited on
Commit
ba05d56
·
verified ·
1 Parent(s): 8f8cd23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ for message in st.session_state.messages:
87
  col1.markdown(message["content"])
88
  col2.button("edit-"+str(pos), key="button_edit_message_"+str(pos), args=[pos], on_click=edit_message)
89
  if message["role"] == "assistant":
90
- col2.button("remove-"+str(pos), key="button_remove_message_"+str(pos), args=[pos], on_click=remove_message)
91
 
92
  # Accept user input
93
  if prompt := st.chat_input(f"Hi I'm {selected_model}, ask me a question"):
 
87
  col1.markdown(message["content"])
88
  col2.button("edit-"+str(pos), key="button_edit_message_"+str(pos), args=[pos], on_click=edit_message)
89
  if message["role"] == "assistant":
90
+ col2.button(str(pos), icon = ":material/delete", key="button_remove_message_"+str(pos), args=[pos], on_click=remove_message)
91
 
92
  # Accept user input
93
  if prompt := st.chat_input(f"Hi I'm {selected_model}, ask me a question"):