Commit
·
3723ab7
1
Parent(s):
1bf15ed
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,10 +126,13 @@ if name and model_name:
|
|
| 126 |
|
| 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 |
-
|
|
|
|
| 130 |
|
| 131 |
try:
|
| 132 |
-
st.write(
|
|
|
|
|
|
|
| 133 |
st.write(
|
| 134 |
f'<div class="row" {style}>{contents}</div>', unsafe_allow_html=True)
|
| 135 |
|
|
|
|
| 126 |
|
| 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 |
|