NursNurs commited on
Commit
94c159d
1 Parent(s): 9415541

avatar fix

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- st.markdown(message['content'])
 
 
 
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()