Update README.md
Browse files
README.md
CHANGED
|
@@ -140,8 +140,8 @@ Example of single-label classification:
|
|
| 140 |
import torch
|
| 141 |
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
|
| 142 |
|
| 143 |
-
tokenizer = DistilBertTokenizer.from_pretrained("
|
| 144 |
-
model = DistilBertForSequenceClassification.from_pretrained("
|
| 145 |
|
| 146 |
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
|
| 147 |
with torch.no_grad():
|
|
|
|
| 140 |
import torch
|
| 141 |
from transformers import DistilBertTokenizer, DistilBertForSequenceClassification
|
| 142 |
|
| 143 |
+
tokenizer = DistilBertTokenizer.from_pretrained("Alanhau/test")
|
| 144 |
+
model = DistilBertForSequenceClassification.from_pretrained("Alanhau/test")
|
| 145 |
|
| 146 |
inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
|
| 147 |
with torch.no_grad():
|