alisawuffles
commited on
Commit
•
05abe3b
1
Parent(s):
13599d1
Update README.md
Browse files
README.md
CHANGED
@@ -14,7 +14,7 @@ x = tokenizer("I believe I will get into UW.", "I will get into UW.", hypothesis
|
|
14 |
logits = model(**x).logits
|
15 |
probs = logits.softmax(dim=1).squeeze(0)
|
16 |
label_id = torch.argmax(probs).item()
|
17 |
-
prediction =
|
18 |
```
|
19 |
|
20 |
### Citation
|
|
|
14 |
logits = model(**x).logits
|
15 |
probs = logits.softmax(dim=1).squeeze(0)
|
16 |
label_id = torch.argmax(probs).item()
|
17 |
+
prediction = model.config.id2label[label_id]
|
18 |
```
|
19 |
|
20 |
### Citation
|