Spaces:
Runtime error
Runtime error
azaninello
commited on
Commit
•
a8d925c
1
Parent(s):
ca9faff
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import transformers
|
3 |
-
from transformers import
|
4 |
|
5 |
-
shroom_generator = pipeline("text-generation", model=
|
6 |
tokenizer='LorenzoDeMattei/GePpeTto',
|
7 |
max_length=50)
|
8 |
|
|
|
1 |
import gradio as gr
|
2 |
import transformers
|
3 |
+
from transformers import AutoModelWithLMHead, AutoTokenizer, pipeline
|
4 |
|
5 |
+
shroom_generator = pipeline("text-generation", model=AutoModelWithLMHead.from_pretrained('LorenzoDeMattei/GePpeTto'),
|
6 |
tokenizer='LorenzoDeMattei/GePpeTto',
|
7 |
max_length=50)
|
8 |
|