Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import random
|
|
2 |
import gradio as gr
|
3 |
from transformers import AutoTokenizer, pipeline, T5ForConditionalGeneration
|
4 |
|
5 |
-
model_name = "versae/modernisa-pre"
|
6 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
7 |
model = T5ForConditionalGeneration.from_pretrained(model_name)
|
8 |
|
|
|
2 |
import gradio as gr
|
3 |
from transformers import AutoTokenizer, pipeline, T5ForConditionalGeneration
|
4 |
|
5 |
+
model_name = "versae/byt5-base-finetuned-modernisa" # "versae/modernisa-pre"
|
6 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
7 |
model = T5ForConditionalGeneration.from_pretrained(model_name)
|
8 |
|