azaninello commited on
Commit
a8d925c
1 Parent(s): ca9faff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,8 +1,8 @@
1
  import gradio as gr
2
  import transformers
3
- from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
4
 
5
- shroom_generator = pipeline("text-generation", model=AutoModelForCausalLM.from_pretrained('LorenzoDeMattei/GePpeTto'),
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