amandakonet commited on
Commit
aab8b6c
·
1 Parent(s): 4d0465f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -219,14 +219,15 @@ with torch.no_grad():
219
 
220
  # clean up true label
221
  true_label = list(filtered_df[filtered_df['evidence'] == option_evidence]['label'])[0]
 
222
  if true_label == "NOT_ENOUGH_INFO":
223
- true_label = "not enough info"
224
  elif true_label == "SUPPORTS":
225
- true_label = "supports"
226
  else:
227
- true_label == "refutes"
228
 
229
- st.write("**The true label is**", true_label)
230
 
231
  st.write("Check out my github repository to try out custom claim and evidence pairs, linked under references.")
232
 
 
219
 
220
  # clean up true label
221
  true_label = list(filtered_df[filtered_df['evidence'] == option_evidence]['label'])[0]
222
+ true_out = true_label
223
  if true_label == "NOT_ENOUGH_INFO":
224
+ true_out = "not enough info"
225
  elif true_label == "SUPPORTS":
226
+ true_out = "supports"
227
  else:
228
+ true_out == "refutes"
229
 
230
+ st.write("**The true label is**", true_out)
231
 
232
  st.write("Check out my github repository to try out custom claim and evidence pairs, linked under references.")
233