Spaces:
Runtime error
Runtime error
amandakonet
commited on
Commit
•
5d2ec6a
1
Parent(s):
d2d0911
model output
Browse files
app.py
CHANGED
@@ -202,7 +202,9 @@ 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 |
-
|
|
|
|
|
206 |
|
207 |
# section 6: analysis
|
208 |
st.markdown("## Critical Analysis")
|
|
|
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)
|
208 |
|
209 |
# section 6: analysis
|
210 |
st.markdown("## Critical Analysis")
|