Update README.md
Browse files
README.md
CHANGED
@@ -24,8 +24,8 @@ from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer
|
|
24 |
hi_text = "जीवन एक चॉकलेट बॉक्स की तरह है।"
|
25 |
chinese_text = "生活就像一盒巧克力。"
|
26 |
|
27 |
-
model = M2M100ForConditionalGeneration.from_pretrained("facebook/
|
28 |
-
tokenizer = M2M100Tokenizer.from_pretrained("facebook/
|
29 |
|
30 |
# translate Hindi to French
|
31 |
tokenizer.src_lang = "hi"
|
|
|
24 |
hi_text = "जीवन एक चॉकलेट बॉक्स की तरह है।"
|
25 |
chinese_text = "生活就像一盒巧克力。"
|
26 |
|
27 |
+
model = M2M100ForConditionalGeneration.from_pretrained("facebook/m2m100_1.2B")
|
28 |
+
tokenizer = M2M100Tokenizer.from_pretrained("facebook/m2m100_1.2B")
|
29 |
|
30 |
# translate Hindi to French
|
31 |
tokenizer.src_lang = "hi"
|