Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
from transformers import AutoTokenizer,
|
2 |
import gradio as gr
|
3 |
|
4 |
model_name = "deep-learning-analytics/wikihow-t5-small"
|
5 |
-
model =
|
6 |
text2text_tokenizer = AutoTokenizer.from_pretrained(model_name)
|
7 |
|
8 |
def text2text(paragraph):
|
|
|
1 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
2 |
import gradio as gr
|
3 |
|
4 |
model_name = "deep-learning-analytics/wikihow-t5-small"
|
5 |
+
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
|
6 |
text2text_tokenizer = AutoTokenizer.from_pretrained(model_name)
|
7 |
|
8 |
def text2text(paragraph):
|