Spaces:
Runtime error
Runtime error
amandakonet
commited on
Commit
•
7164ec7
1
Parent(s):
5d2ec6a
model output
Browse files
app.py
CHANGED
@@ -202,6 +202,8 @@ with torch.no_grad():
|
|
202 |
scores = model(**features).logits
|
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, "is ", labels, " by ", option_evidence)
|
206 |
true_label = list(filtered_df[filtered_df['evidence'] == option_evidence]['label'])[0]
|
207 |
st.write("The correct relationship is", true_label)
|
|
|
202 |
scores = model(**features).logits
|
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.values())
|
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)
|