Update README.md
Browse files
README.md
CHANGED
@@ -51,8 +51,8 @@ Supported district tokens:
|
|
51 |
# Load model directly
|
52 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
53 |
|
54 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
55 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("
|
56 |
|
57 |
"""
|
58 |
The format of the input text MUST BE: <district> <bengali_text>
|
@@ -70,7 +70,7 @@ from transformers import pipeline
|
|
70 |
|
71 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
72 |
|
73 |
-
pipe = pipeline("text2text-generation", model="
|
74 |
|
75 |
|
76 |
"""
|
|
|
51 |
# Load model directly
|
52 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
53 |
|
54 |
+
tokenizer = AutoTokenizer.from_pretrained("teamapocalypseml/ben2ipa-byt5small")
|
55 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("teamapocalypseml/ben2ipa-byt5small")
|
56 |
|
57 |
"""
|
58 |
The format of the input text MUST BE: <district> <bengali_text>
|
|
|
70 |
|
71 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
72 |
|
73 |
+
pipe = pipeline("text2text-generation", model="teamapocalypseml/ben2ipa-byt5small", device=device)
|
74 |
|
75 |
|
76 |
"""
|