Spaces:
Sleeping
Sleeping
change avatar
Browse files
app.py
CHANGED
@@ -230,7 +230,8 @@ if 'descriptions' not in st.session_state:
|
|
230 |
|
231 |
st.title("You name it! 🗣")
|
232 |
|
233 |
-
|
|
|
234 |
st.write("Hey assistant!")
|
235 |
|
236 |
bot = st.chat_message('assistant')
|
@@ -239,7 +240,7 @@ bot.write("Hello human! Wanna practice naming some words?")
|
|
239 |
#for showing history of messages
|
240 |
for message in st.session_state.messages:
|
241 |
if message['role'] == 'user':
|
242 |
-
with st.chat_message(message['role']
|
243 |
st.markdown(message['content'])
|
244 |
else:
|
245 |
with st.chat_message(message['role']):
|
|
|
230 |
|
231 |
st.title("You name it! 🗣")
|
232 |
|
233 |
+
# JS: would remove Simon by some neutral avatar
|
234 |
+
with st.chat_message('user'):
|
235 |
st.write("Hey assistant!")
|
236 |
|
237 |
bot = st.chat_message('assistant')
|
|
|
240 |
#for showing history of messages
|
241 |
for message in st.session_state.messages:
|
242 |
if message['role'] == 'user':
|
243 |
+
with st.chat_message(message['role']):
|
244 |
st.markdown(message['content'])
|
245 |
else:
|
246 |
with st.chat_message(message['role']):
|