jonathanjordan21 commited on
Commit
f0ab69f
1 Parent(s): f9a4cc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ if prompt := st.chat_input("Ask me anything.."):
49
  # Display assistant response in chat message container
50
  with st.chat_message("assistant"):
51
  st.markdown(response)
52
- st.session_state.memory.save_context({"question":prompt}, {"output":prompt})
53
  st.session_state.memory.chat_memory.messages = st.session_state.memory.chat_memory.messages[-15:]
54
  # Add assistant response to chat history
55
  st.session_state.messages.append({"role": "assistant", "content": response})
 
49
  # Display assistant response in chat message container
50
  with st.chat_message("assistant"):
51
  st.markdown(response)
52
+ st.session_state.memory.save_context({"question":prompt}, {"output":response})
53
  st.session_state.memory.chat_memory.messages = st.session_state.memory.chat_memory.messages[-15:]
54
  # Add assistant response to chat history
55
  st.session_state.messages.append({"role": "assistant", "content": response})