kaleidoskop-hug commited on
Commit
88e1037
·
verified ·
1 Parent(s): ba05d56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -107,11 +107,11 @@ if prompt := st.chat_input(f"Hi I'm {selected_model}, ask me a question"):
107
  col1, col2 = st.columns([9,1])
108
  response = col1.write_stream(assistant["stream"])
109
  col2.button("edit-"+str(pos), key="button_edit_message_"+str(pos), args=[pos], on_click=edit_message)
110
- col2.button("remove-"+str(pos), key="button_remove_message_"+str(pos), args=[pos], on_click=remove_message)
111
  else:
112
  with st.chat_message("assistant"):
113
  col1, col2 = st.columns([9,1])
114
  response = col1.write("Failure!")
115
- col2.button("remove-"+str(pos), key="button_remove_message_"+str(pos), args=[pos], on_click=remove_message)
116
 
117
  st.session_state.messages.append({"role": "assistant", "content": response})
 
107
  col1, col2 = st.columns([9,1])
108
  response = col1.write_stream(assistant["stream"])
109
  col2.button("edit-"+str(pos), key="button_edit_message_"+str(pos), args=[pos], on_click=edit_message)
110
+ col2.button(str(pos), icon = ":material/delete", key="button_remove_message_"+str(pos), args=[pos], on_click=remove_message)
111
  else:
112
  with st.chat_message("assistant"):
113
  col1, col2 = st.columns([9,1])
114
  response = col1.write("Failure!")
115
+ col2.button(str(pos), icon = ":material/delete", key="button_remove_message_"+str(pos), args=[pos], on_click=remove_message)
116
 
117
  st.session_state.messages.append({"role": "assistant", "content": response})