bhulston commited on
Commit
77fb110
1 Parent(s): 009017d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ with st.chat_message("assistant"):
75
  message_placeholder.markdown(full_response + "▌")
76
  message_placeholder.markdown(full_response)
77
  # Add assistant response to chat history
78
- st.session_state.messages.append({"role": "assistant", "content": final_response})
79
 
80
  if prompt := st.chat_input("What kind of class are you looking for?"):
81
  # Display user message in chat message container
@@ -109,5 +109,5 @@ if prompt := st.chat_input("What kind of class are you looking for?"):
109
  message_placeholder.markdown(full_response + "▌")
110
  message_placeholder.markdown(full_response)
111
  # Add assistant response to chat history
112
- st.session_state.messages.append({"role": "assistant", "content": final_response})
113
 
 
75
  message_placeholder.markdown(full_response + "▌")
76
  message_placeholder.markdown(full_response)
77
  # Add assistant response to chat history
78
+ st.session_state.messages.append({"role": "assistant", "content": full_response})
79
 
80
  if prompt := st.chat_input("What kind of class are you looking for?"):
81
  # Display user message in chat message container
 
109
  message_placeholder.markdown(full_response + "▌")
110
  message_placeholder.markdown(full_response)
111
  # Add assistant response to chat history
112
+ st.session_state.messages.append({"role": "assistant", "content": full_response})
113