Spaces:
Runtime error
Runtime error
amandakonet
commited on
Commit
•
f9902a8
1
Parent(s):
7164ec7
model output
Browse files
app.py
CHANGED
@@ -203,7 +203,7 @@ with torch.no_grad():
|
|
203 |
label_mapping = ['contradiction', 'entailment', 'neutral']
|
204 |
labels = [label_mapping[score_max] for score_max in scores.argmax(dim=1)]
|
205 |
st.write("**The claim:", option_claim)
|
206 |
-
st.write("is ", labels
|
207 |
st.write("The claim: ", option_claim, "is ", labels, " by ", option_evidence)
|
208 |
true_label = list(filtered_df[filtered_df['evidence'] == option_evidence]['label'])[0]
|
209 |
st.write("The correct relationship is", true_label)
|
|
|
203 |
label_mapping = ['contradiction', 'entailment', 'neutral']
|
204 |
labels = [label_mapping[score_max] for score_max in scores.argmax(dim=1)]
|
205 |
st.write("**The claim:", option_claim)
|
206 |
+
st.write("is ", labels[0])
|
207 |
st.write("The claim: ", option_claim, "is ", labels, " by ", option_evidence)
|
208 |
true_label = list(filtered_df[filtered_df['evidence'] == option_evidence]['label'])[0]
|
209 |
st.write("The correct relationship is", true_label)
|