Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -98,7 +98,7 @@ if prompt := st.chat_input("Ask me anything.."):
|
|
| 98 |
# Add user message to chat history
|
| 99 |
st.session_state.messages.append({"role": "User", "content": prompt})
|
| 100 |
|
| 101 |
-
response = st.session_state.chain.invoke(prompt).split("\n<|")[0]
|
| 102 |
|
| 103 |
# Display assistant response in chat message container
|
| 104 |
with st.chat_message("assistant"):
|
|
|
|
| 98 |
# Add user message to chat history
|
| 99 |
st.session_state.messages.append({"role": "User", "content": prompt})
|
| 100 |
|
| 101 |
+
response = st.session_state.chain.invoke({"question":prompt, "memory":st.session_state.memory}).split("\n<|")[0]
|
| 102 |
|
| 103 |
# Display assistant response in chat message container
|
| 104 |
with st.chat_message("assistant"):
|