Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -173,6 +173,6 @@ if prompt := textinput:
|
|
173 |
response = st.session_state.qa(
|
174 |
{"query": prompt})
|
175 |
with st.chat_message("assistant", avatar='🦙'):
|
176 |
-
st.markdown(response["result"]+'\n'+response["source_documents"])
|
177 |
# Add assistant response to chat history
|
178 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
|
|
173 |
response = st.session_state.qa(
|
174 |
{"query": prompt})
|
175 |
with st.chat_message("assistant", avatar='🦙'):
|
176 |
+
st.markdown(str(response["result"])+'\n'+str(response["source_documents"]))
|
177 |
# Add assistant response to chat history
|
178 |
st.session_state.messages.append({"role": "assistant", "content": response})
|