Spaces:
Runtime error
Runtime error
iamviveksrk
commited on
Commit
β’
f2fae48
1
Parent(s):
a1c7b5a
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ if st.session_state.results:
|
|
93 |
markdown(context[:start_idx] + str(annotation(body=answer, label="RELEVANT", background="#964448", color='#ffffff')) + context[end_idx:]),
|
94 |
unsafe_allow_html=True,
|
95 |
)
|
96 |
-
st.markdown(f"**Title:** [{result['
|
97 |
else:
|
98 |
st.info(
|
99 |
"π€ Haystack is unsure whether any of the documents contain an answer to your question. Try to reformulate it!"
|
|
|
93 |
markdown(context[:start_idx] + str(annotation(body=answer, label="RELEVANT", background="#964448", color='#ffffff')) + context[end_idx:]),
|
94 |
unsafe_allow_html=True,
|
95 |
)
|
96 |
+
st.markdown(f"**Title:** [{result['title']}]({result['link']})\n**Relevance:** {result['relevance']}")
|
97 |
else:
|
98 |
st.info(
|
99 |
"π€ Haystack is unsure whether any of the documents contain an answer to your question. Try to reformulate it!"
|