kaleidoskop-hug
commited on
Update app.py
Browse files
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(
|
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"):
|