pratikshahp commited on
Commit
10ca710
·
verified ·
1 Parent(s): a521172

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,5 +52,5 @@ if prompt := st.chat_input("Type your message here..."):
52
  # Generate model response
53
  with st.chat_message("assistant"):
54
  response = llm.invoke(conversation)
55
- st.markdown(response)
56
- st.session_state.messages.append({"role": "assistant", "content": response})
 
52
  # Generate model response
53
  with st.chat_message("assistant"):
54
  response = llm.invoke(conversation)
55
+ st.markdown(response.content)
56
+ st.session_state.messages.append({"role": "assistant", "content": response.content})