Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
**How to use**
|
2 |
+
```python
|
3 |
+
from transformers import BartForConditionalGeneration, AutoTokenizer
|
4 |
+
base_model_name = 'facebook/bart-base'
|
5 |
+
model_name = 'SkolkovoInstitute/bart-base-detox-10000-7'
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained(base_model_name)
|
7 |
+
model = BartForConditionalGeneration.from_pretrained(model_name)
|
8 |
+
```
|