yinlinfu commited on
Commit
4c16383
·
1 Parent(s): cc8fc07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -243,5 +243,6 @@ if st.button('Generated Expansion'):
243
  with col2:
244
  st.subheader('Rerank By GMS:')
245
  candidates_rerank = re_rank_candidates(user_query, candidates, method='gms')[:maxtags_sidebar]
246
- result = [(item[0], item[1]['gms']) for item in candidates_rerank]
247
- st.write(result)
 
 
243
  with col2:
244
  st.subheader('Rerank By GMS:')
245
  candidates_rerank = re_rank_candidates(user_query, candidates, method='gms')[:maxtags_sidebar]
246
+ data_dicts = [{'query': item[0], 'GMS Value': item[1]['gms']} for item in candidates_rerank]
247
+ df = pd.DataFrame.from_dict(data_dicts)
248
+ st.write(df)