Deepakvictor commited on
Commit
32681ab
1 Parent(s): 4a6242e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -2
README.md CHANGED
@@ -34,9 +34,21 @@ Model is finetuned on facebook/m2m100_418M m2m100_418m page --> https://hugging
34
 
35
  Use the code below to get started with the model.
36
 
37
- Need to be uploaded
 
 
38
 
39
- [More Information Needed]
 
 
 
 
 
 
 
 
 
 
40
 
41
 
42
 
 
34
 
35
  Use the code below to get started with the model.
36
 
37
+ ```python
38
+ # Load model directly from transformers library
39
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
40
 
41
+ tokenizer = AutoTokenizer.from_pretrained("Deepakvictor/tan-ta")
42
+ model = AutoModelForSeq2SeqLM.from_pretrained("Deepakvictor/tan-ta")
43
+
44
+ #pass the input
45
+ inp = tokenizer("Thalaivaru nirantharam",return_tensors="pt")
46
+ out= model.generate(**inp)
47
+ tokenizer.batch_decode(out,skip_special_tokens=True)
48
+ #['தலைவரு நிரந்தரம்']
49
+ ```
50
+
51
+ Repo code --> github.com/devic1 🖤
52
 
53
 
54