Spaces:
Runtime error
Runtime error
avatar fix
Browse files
app.py
CHANGED
@@ -96,7 +96,10 @@ bot.write("Hello human! Wanna practice naming some words?")
|
|
96 |
#for showing history of messages
|
97 |
for message in st.session_state.messages:
|
98 |
with st.chat_message(message['role']):
|
99 |
-
|
|
|
|
|
|
|
100 |
|
101 |
def get_text():
|
102 |
input_text = st.chat_input()
|
|
|
96 |
#for showing history of messages
|
97 |
for message in st.session_state.messages:
|
98 |
with st.chat_message(message['role']):
|
99 |
+
if message['role'] == 'user':
|
100 |
+
st.markdown(message['content'], avatar='simon.jpg')
|
101 |
+
else:
|
102 |
+
st.markdown(message['content'])
|
103 |
|
104 |
def get_text():
|
105 |
input_text = st.chat_input()
|