Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,6 @@
|
|
1 |
-
|
2 |
from transformers import PreTrainedTokenizerFast, BartForConditionalGeneration
|
3 |
-
|
4 |
-
# 많은 경우 AutoTokenizer, AutoModel
|
5 |
-
# tokenizer = AutoTokenizer.from_pretrained("model 이름 어쩌고 저쩌고")
|
6 |
-
# BART는 encoder-decoder 모델의 예시
|
7 |
|
8 |
model_name = "ainize/kobart-news"
|
9 |
tokenizer = PreTrainedTokenizerFast.from_pretrained(model_name)
|
|
|
1 |
+
import gradio as gr
|
2 |
from transformers import PreTrainedTokenizerFast, BartForConditionalGeneration
|
3 |
+
|
|
|
|
|
|
|
4 |
|
5 |
model_name = "ainize/kobart-news"
|
6 |
tokenizer = PreTrainedTokenizerFast.from_pretrained(model_name)
|