g8a9 commited on
Commit
d6fb764
1 Parent(s): cb66505
Files changed (1) hide show
  1. single.py +1 -3
single.py CHANGED
@@ -72,9 +72,7 @@ def body():
72
 
73
  st.markdown("### Prediction")
74
  scores = bench.score(text)
75
- scores_str = ", ".join(
76
- [f"{config.id2label[l]}: {s:.2f}" for l, s in enumerate(scores)]
77
- )
78
  st.text(scores_str)
79
 
80
  with st.spinner("Computing Explanations.."):
 
72
 
73
  st.markdown("### Prediction")
74
  scores = bench.score(text)
75
+ scores_str = ", ".join([f"k: {v:.2f}" for k, v in scores.items()])
 
 
76
  st.text(scores_str)
77
 
78
  with st.spinner("Computing Explanations.."):