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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -95,10 +95,11 @@ bot.write("Hello human! Wanna practice naming some words?")
95
 
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():
 
95
 
96
  #for showing history of messages
97
  for message in st.session_state.messages:
98
+ if message['role'] == 'user':
99
+ with st.chat_message(message['role'], avatar='simon.jpg'):
100
+ st.markdown(message['content'])
101
+ else:
102
+ with st.chat_message(message['role']):
103
  st.markdown(message['content'])
104
 
105
  def get_text():