dardem commited on
Commit
423d9ea
1 Parent(s): 7de719b

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -0
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
+ ```