pawlowskipawel
commited on
Commit
•
2a15446
1
Parent(s):
5af5686
Update README.md
Browse files
README.md
CHANGED
@@ -30,7 +30,7 @@ def translate(input_text, src_lang, trg_lang):
|
|
30 |
return tokenizer.decode(generated_tokens, skip_special_tokens=True)[len(prompt):]
|
31 |
|
32 |
|
33 |
-
model = AutoModelForCausalLM.from_pretrained("Samsung/BigTranslateSlotTranslator"
|
34 |
tokenizer = AutoTokenizer.from_pretrained("Samsung/BigTranslateSlotTranslator")
|
35 |
|
36 |
translation = translate("set the temperature on my <a>thermostat<a> to <b> 29 degrees <b>", "en", "de") # translation: stell die temperatur auf meinem <a> thermostat <a> auf <b> 29 grad <b>
|
|
|
30 |
return tokenizer.decode(generated_tokens, skip_special_tokens=True)[len(prompt):]
|
31 |
|
32 |
|
33 |
+
model = AutoModelForCausalLM.from_pretrained("Samsung/BigTranslateSlotTranslator")
|
34 |
tokenizer = AutoTokenizer.from_pretrained("Samsung/BigTranslateSlotTranslator")
|
35 |
|
36 |
translation = translate("set the temperature on my <a>thermostat<a> to <b> 29 degrees <b>", "en", "de") # translation: stell die temperatur auf meinem <a> thermostat <a> auf <b> 29 grad <b>
|