crystina-z commited on
Commit
3723ab7
·
1 Parent(s): 1bf15ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- output = f'<div class="row" {style}> <b>Rank</b>: {i+1} | <b>Document ID</b>: {result_id} | <b>True Relevance ID</b>: {label_text}'
 
130
 
131
  try:
132
- st.write(output, unsafe_allow_html=True)
 
 
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