Update README.md
Browse files
README.md
CHANGED
@@ -20,7 +20,7 @@ OUTPUT = 각 label에 맞는 뉴스 기사 제목을 생성합니다.
|
|
20 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
21 |
|
22 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
23 |
-
model_dir = "t5-base-korean-news-title-klue-ynat"
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_dir)
|
25 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_dir)
|
26 |
model.to(device)
|
|
|
20 |
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
21 |
|
22 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
23 |
+
model_dir = "kfkas/t5-base-korean-news-title-klue-ynat"
|
24 |
tokenizer = AutoTokenizer.from_pretrained(model_dir)
|
25 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_dir)
|
26 |
model.to(device)
|