Spaces:
Runtime error
Runtime error
Commit
•
7076b24
1
Parent(s):
a65d202
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,9 @@ if prompt := st.chat_input("Ask me anything.."):
|
|
49 |
# Add user message to chat history
|
50 |
st.session_state.messages.append({"role": "User", "content": prompt})
|
51 |
|
52 |
-
full_response = st.session_state.chain.invoke(prompt).split("\n<|")[0]
|
|
|
|
|
53 |
|
54 |
with st.chat_message("assistant"):
|
55 |
st.markdown(full_response)
|
|
|
49 |
# Add user message to chat history
|
50 |
st.session_state.messages.append({"role": "User", "content": prompt})
|
51 |
|
52 |
+
# full_response = st.session_state.chain.invoke(prompt).split("\n<|")[0]
|
53 |
+
full_response = st.session_state.chain.invoke({"question":prompt, "memory":st.session_state.memory}).split("\n<|")[0]
|
54 |
+
|
55 |
|
56 |
with st.chat_message("assistant"):
|
57 |
st.markdown(full_response)
|