Commit
·
4d9580c
1
Parent(s):
6a65c56
Update README.md
Browse files
README.md
CHANGED
@@ -70,8 +70,8 @@ print(device)
|
|
70 |
#appending the task identifier to the beginning of input
|
71 |
article = "Headline: " + article
|
72 |
|
73 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("omidvaramin/
|
74 |
-
tokenizer = AutoTokenizer.from_pretrained("omidvaramin/
|
75 |
#encodign article using tokenizer
|
76 |
encoding = tokenizer(article
|
77 |
, max_length=1024
|
|
|
70 |
#appending the task identifier to the beginning of input
|
71 |
article = "Headline: " + article
|
72 |
|
73 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("omidvaramin/Ht5-small").to(device)
|
74 |
+
tokenizer = AutoTokenizer.from_pretrained("omidvaramin/Ht5-small")
|
75 |
#encodign article using tokenizer
|
76 |
encoding = tokenizer(article
|
77 |
, max_length=1024
|