Commit
·
c2d7df6
1
Parent(s):
3723ab7
Update app.py
Browse files
app.py
CHANGED
@@ -127,12 +127,11 @@ if name and model_name:
|
|
127 |
print(qid, result_id, label, style)
|
128 |
# output = f'<div class="row"> <b>Rank</b>: {i+1} | <b>Document ID</b>: {result_id} | <b>Score</b>:{result_score:.2f}</div>'
|
129 |
output_1 = f'<div class="row" {style}> <b>Rank</b>: {i+1} | <b>Document ID</b>: {result_id}</div>'
|
130 |
-
output_2 = f'<b>True Relevance</b>: {label_text}</div>'
|
131 |
|
132 |
try:
|
133 |
st.write(output_1, unsafe_allow_html=True)
|
134 |
st.write(output_2, unsafe_allow_html=True)
|
135 |
-
|
136 |
st.write(
|
137 |
f'<div class="row" {style}>{contents}</div>', unsafe_allow_html=True)
|
138 |
|
|
|
127 |
print(qid, result_id, label, style)
|
128 |
# output = f'<div class="row"> <b>Rank</b>: {i+1} | <b>Document ID</b>: {result_id} | <b>Score</b>:{result_score:.2f}</div>'
|
129 |
output_1 = f'<div class="row" {style}> <b>Rank</b>: {i+1} | <b>Document ID</b>: {result_id}</div>'
|
130 |
+
output_2 = f'<div class="row" {style}> <b>True Relevance</b>: {label_text}</div>'
|
131 |
|
132 |
try:
|
133 |
st.write(output_1, unsafe_allow_html=True)
|
134 |
st.write(output_2, unsafe_allow_html=True)
|
|
|
135 |
st.write(
|
136 |
f'<div class="row" {style}>{contents}</div>', unsafe_allow_html=True)
|
137 |
|