Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -111,5 +111,5 @@ if st.session_state.messages[-1]["role"] != "assistant":
|
|
111 |
with st.chat_message("assistant", avatar="👽"):
|
112 |
response = handle_query(user_prompt)
|
113 |
full_response = st.write(response)
|
114 |
-
|
115 |
-
|
|
|
111 |
with st.chat_message("assistant", avatar="👽"):
|
112 |
response = handle_query(user_prompt)
|
113 |
full_response = st.write(response)
|
114 |
+
message = {"role": "assistant", "content": full_response}
|
115 |
+
st.session_state.messages.append(message)
|