victor7246 commited on
Commit
f9b7f8c
·
verified ·
1 Parent(s): 5decd13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -276,6 +276,7 @@ if __name__ == '__main__':
276
  response = llm.invoke(question).content
277
  with st.chat_message("assistant"):
278
  st.markdown(response)
 
279
 
280
  if st.button("Reset Chat History"):
281
  #st.session_state['questions'] = []
 
276
  response = llm.invoke(question).content
277
  with st.chat_message("assistant"):
278
  st.markdown(response)
279
+ st.session_state.messages.append({"role": "assistant", "content": response})
280
 
281
  if st.button("Reset Chat History"):
282
  #st.session_state['questions'] = []