Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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'] = []
|