Spaces:
Runtime error
Runtime error
fix
Browse files
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.."):
|