Update README.md
Browse files
README.md
CHANGED
@@ -10,7 +10,7 @@ license: apache-2.0
|
|
10 |
|
11 |
```shell
|
12 |
from transformers import RobertaForSequenceClassification, RobertaTokenizer
|
13 |
-
safety_classifier_dir = 'zjunlp/
|
14 |
safety_classifier_model = RobertaForSequenceClassification.from_pretrained(safety_classifier_dir)
|
15 |
safety_classifier_tokenizer = RobertaTokenizer.from_pretrained(safety_classifier_dir)
|
16 |
```
|
|
|
10 |
|
11 |
```shell
|
12 |
from transformers import RobertaForSequenceClassification, RobertaTokenizer
|
13 |
+
safety_classifier_dir = 'zjunlp/SafeEdit-Safety-Classifier'
|
14 |
safety_classifier_model = RobertaForSequenceClassification.from_pretrained(safety_classifier_dir)
|
15 |
safety_classifier_tokenizer = RobertaTokenizer.from_pretrained(safety_classifier_dir)
|
16 |
```
|