igorlucic commited on
Commit
c3e223f
·
1 Parent(s): 79dc589

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -0
README.md CHANGED
@@ -1,3 +1,9 @@
1
  ---
2
  license: cc
3
  ---
 
 
 
 
 
 
 
1
  ---
2
  license: cc
3
  ---
4
+
5
+ pip install transformers sentencepiece
6
+
7
+ pipe = pipeline(task='text2text-generation', model='facebook/m2m100_418M')
8
+
9
+ pipe("That is a flower", forced_bos_token_id=pipe.tokenizer.get_lang_id(lang='zh'))