farukkr commited on
Commit
c174ccf
·
verified ·
1 Parent(s): c8004ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,10 +34,10 @@ if "chat_history" not in st.session_state:
34
  for message in st.session_state.chat_history:
35
  if isinstance(message, AIMessage):
36
  with st.chat_message("AI"):
37
- st.write(message.content)
38
  elif isinstance(message, HumanMessage):
39
  with st.chat_message("Human"):
40
- st.write(message.content)
41
 
42
  # User input
43
  user_query = st.chat_input("Type your message here...")
 
34
  for message in st.session_state.chat_history:
35
  if isinstance(message, AIMessage):
36
  with st.chat_message("AI"):
37
+ st.markdown(message.content)
38
  elif isinstance(message, HumanMessage):
39
  with st.chat_message("Human"):
40
+ st.markdown(message.content)
41
 
42
  # User input
43
  user_query = st.chat_input("Type your message here...")