Update README.md
Browse files
README.md
CHANGED
@@ -31,6 +31,7 @@ print(tokenizer.decode(outputs[0]))
|
|
31 |
```
|
32 |
|
33 |
Or if you like to use the pipeline instead
|
|
|
34 |
```python
|
35 |
# Set up the pipeline
|
36 |
from transformers import pipeline, T5ForConditionalGeneration, AutoTokenizer
|
@@ -42,4 +43,4 @@ translator = pipeline("translation", model=model, tokenizer=tokenizer)
|
|
42 |
text = "Hun vil ikke gi bort sine personlige data."
|
43 |
print(translator(text, max_length=255))
|
44 |
|
45 |
-
```
|
|
|
31 |
```
|
32 |
|
33 |
Or if you like to use the pipeline instead
|
34 |
+
|
35 |
```python
|
36 |
# Set up the pipeline
|
37 |
from transformers import pipeline, T5ForConditionalGeneration, AutoTokenizer
|
|
|
43 |
text = "Hun vil ikke gi bort sine personlige data."
|
44 |
print(translator(text, max_length=255))
|
45 |
|
46 |
+
```
|