Added a link for weak match
Browse files
app.py
CHANGED
@@ -279,6 +279,9 @@ if QUESTION:
|
|
279 |
st.write(top_2[0]['url'])
|
280 |
if top_2[0]['url']!=top_2[1]['url']:
|
281 |
st.write(top_2[1]['url'])
|
|
|
|
|
|
|
282 |
# Add assistant response to chat history
|
283 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
284 |
#st.write(ans)
|
|
|
279 |
st.write(top_2[0]['url'])
|
280 |
if top_2[0]['url']!=top_2[1]['url']:
|
281 |
st.write(top_2[1]['url'])
|
282 |
+
else:
|
283 |
+
st.write('Resources:',top_2[0]['score'], ' confidence')
|
284 |
+
st.write(top_2[0]['url'])
|
285 |
# Add assistant response to chat history
|
286 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
287 |
#st.write(ans)
|