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