alisawuffles commited on
Commit
be79718
1 Parent(s): 9624ab4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -20,7 +20,7 @@ from transformers import RobertaTokenizer, RobertaForSequenceClassification
20
  model = RobertaForSequenceClassification.from_pretrained('alisawuffles/roberta-large-wanli')
21
  tokenizer = RobertaTokenizer.from_pretrained('alisawuffles/roberta-large-wanli')
22
 
23
- x = tokenizer("I almost forgot to eat lunch.", "I didn't forget to eat lunch.", hypothesis, return_tensors='pt', max_length=128, truncation=True)
24
  logits = model(**x).logits
25
  probs = logits.softmax(dim=1).squeeze(0)
26
  label_id = torch.argmax(probs).item()
 
20
  model = RobertaForSequenceClassification.from_pretrained('alisawuffles/roberta-large-wanli')
21
  tokenizer = RobertaTokenizer.from_pretrained('alisawuffles/roberta-large-wanli')
22
 
23
+ x = tokenizer("I almost forgot to eat lunch.", "I didn't forget to eat lunch.", return_tensors='pt', max_length=128, truncation=True)
24
  logits = model(**x).logits
25
  probs = logits.softmax(dim=1).squeeze(0)
26
  label_id = torch.argmax(probs).item()