shihab17 commited on
Commit
4a9cdee
·
1 Parent(s): e058c29

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -31,7 +31,8 @@ should probably proofread and complete it, then remove this comment. -->
31
 
32
  You can use this model directly with a pipeline:
33
 
34
- '''python
 
35
  from transformers import AutoTokenizer, pipeline
36
  tokenizer = AutoTokenizer.from_pretrained("shihab17/bengali-bn-to-en")
37
  model = AutoModelForSeq2SeqLM.from_pretrained("shihab17/bengali-bn-to-en")
@@ -41,7 +42,7 @@ sentence = 'ম্যাচ শেষে পুরস্কার বিতর
41
  translator = pipeline("translation_bn_to_en", model=model, tokenizer=tokenizer)
42
  output = translator(sentence)
43
  print(output)
44
- '''
45
 
46
 
47
  # bengali-bn-to-en
 
31
 
32
  You can use this model directly with a pipeline:
33
 
34
+
35
+ ```python
36
  from transformers import AutoTokenizer, pipeline
37
  tokenizer = AutoTokenizer.from_pretrained("shihab17/bengali-bn-to-en")
38
  model = AutoModelForSeq2SeqLM.from_pretrained("shihab17/bengali-bn-to-en")
 
42
  translator = pipeline("translation_bn_to_en", model=model, tokenizer=tokenizer)
43
  output = translator(sentence)
44
  print(output)
45
+ ```
46
 
47
 
48
  # bengali-bn-to-en