Update README.md
Browse files
README.md
CHANGED
@@ -44,7 +44,7 @@ tokenizer = AutoTokenizer.from_pretrained("Michielo/mt5-small_en-nl_translation"
|
|
44 |
model = AutoModelForSeq2SeqLM.from_pretrained("Michielo/mt5-small_en-nl_translation")
|
45 |
|
46 |
# tokenize input
|
47 |
-
inputs = tokenizer(">>
|
48 |
# calculate the output
|
49 |
outputs = model.generate(**inputs)
|
50 |
# decode and print
|
|
|
44 |
model = AutoModelForSeq2SeqLM.from_pretrained("Michielo/mt5-small_en-nl_translation")
|
45 |
|
46 |
# tokenize input
|
47 |
+
inputs = tokenizer(">>nl<< Your English text here", return_tensors="pt")
|
48 |
# calculate the output
|
49 |
outputs = model.generate(**inputs)
|
50 |
# decode and print
|