jonathanjordan21 commited on
Commit
a5d6670
1 Parent(s): 0992338

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,4 +59,4 @@ if prompt := st.chat_input("Ask me anything.."):
59
  st.session_state.memory.save_context({"question":prompt}, {"output":full_response})
60
  st.session_state.memory.chat_memory.messages = st.session_state.memory.chat_memory.messages[-15:]
61
  # Add assistant response to chat history
62
- st.session_state.messages.append({"role": "assistant", "content": response})
 
59
  st.session_state.memory.save_context({"question":prompt}, {"output":full_response})
60
  st.session_state.memory.chat_memory.messages = st.session_state.memory.chat_memory.messages[-15:]
61
  # Add assistant response to chat history
62
+ st.session_state.messages.append({"role": "assistant", "content": full_response})