Update README.md
Browse files
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
|
38 |
-
|
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."
|