Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 247 |
-
|
|
|
|
|
|
| 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)
|