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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -4,9 +4,7 @@ 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
- top_k=50,
9
- top_p=0.95,)
10
 
11
  def generator(inizia_la_storia = ''):
12
  shroom_result = shroom_generator(inizia_la_storia, max_length=120)
 
4
 
5
  shroom_generator = pipeline("text-generation", model=AutoModelForCausalLM.from_pretrained('LorenzoDeMattei/GePpeTto'),
6
  tokenizer='LorenzoDeMattei/GePpeTto',
7
+ max_length=50)
 
 
8
 
9
  def generator(inizia_la_storia = ''):
10
  shroom_result = shroom_generator(inizia_la_storia, max_length=120)