Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def handle_userinput(user_question):
|
|
32 |
st.write(bot_template.replace("{{MSG}}", message), unsafe_allow_html=True)
|
33 |
else:
|
34 |
source = sources_ref[basename(message[0].metadata["source"])]
|
35 |
-
output = ("Source: <em>\"" +
|
36 |
"\"<br><br></em>" + source)
|
37 |
|
38 |
st.write(source_template.replace("{{MSG}}", str(output)), unsafe_allow_html=True)
|
|
|
32 |
st.write(bot_template.replace("{{MSG}}", message), unsafe_allow_html=True)
|
33 |
else:
|
34 |
source = sources_ref[basename(message[0].metadata["source"])]
|
35 |
+
output = ("Source: <em>\"" + message[0].page_content +
|
36 |
"\"<br><br></em>" + source)
|
37 |
|
38 |
st.write(source_template.replace("{{MSG}}", str(output)), unsafe_allow_html=True)
|