pere commited on
Commit
153e1ff
1 Parent(s): fe6a973

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -4
README.md CHANGED
@@ -34,10 +34,8 @@ Or if you like to use the pipeline instead
34
 
35
  ```python
36
  # Set up the pipeline
37
- from transformers import pipeline, T5ForConditionalGeneration, AutoTokenizer
38
- model = T5ForConditionalGeneration.from_pretrained('andrek/nb2nn',from_flax=True)
39
- tokenizer = AutoTokenizer.from_pretrained('andrek/nb2nn')
40
- translator = pipeline("translation", model=model, tokenizer=tokenizer)
41
 
42
  # Do the translation
43
  text = "Hun vil ikke gi bort sine personlige data."
 
34
 
35
  ```python
36
  # Set up the pipeline
37
+ from transformers import pipeline
38
+ translator = pipeline("translation", model='andrek/nb2nn')
 
 
39
 
40
  # Do the translation
41
  text = "Hun vil ikke gi bort sine personlige data."