Update README.md
Browse files
README.md
CHANGED
@@ -16,8 +16,8 @@ This model is trained for toxicity classification task. The dataset used for tra
|
|
16 |
from transformers import RobertaTokenizer, RobertaForSequenceClassification
|
17 |
|
18 |
# load tokenizer and model weights
|
19 |
-
tokenizer = RobertaTokenizer.from_pretrained('
|
20 |
-
model = RobertaForSequenceClassification.from_pretrained('
|
21 |
|
22 |
# prepare the input
|
23 |
batch = tokenizer.encode('you are amazing', return_tensors='pt')
|
|
|
16 |
from transformers import RobertaTokenizer, RobertaForSequenceClassification
|
17 |
|
18 |
# load tokenizer and model weights
|
19 |
+
tokenizer = RobertaTokenizer.from_pretrained('pt-sk/roberta_toxic_classifier')
|
20 |
+
model = RobertaForSequenceClassification.from_pretrained('pt-sk/roberta_toxic_classifier')
|
21 |
|
22 |
# prepare the input
|
23 |
batch = tokenizer.encode('you are amazing', return_tensors='pt')
|