azaninello micrem73 commited on
Commit
2b30cc1
1 Parent(s): f466000

Update app.py (#1)

Browse files

- Update app.py (ab6ced1ff2b4db41852af668a7c621f29af6bb60)


Co-authored-by: michele <micrem73@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ shroom_generator = pipeline("text-generation", model=AutoModelWithLMHead.from_pr
16
  top_p=0.95,)
17
 
18
  def generator(inizia_la_storia = ''):
19
- shroom_result = shroom_generator(inizia_la_storia, max_length=120)
20
  return shroom_result[0]["generated_text"]
21
 
22
  iface = gr.Interface(fn=generator, inputs="text", outputs="text")
 
16
  top_p=0.95,)
17
 
18
  def generator(inizia_la_storia = ''):
19
+ shroom_result = shroom_generator(inizia_la_storia, max_length=520)
20
  return shroom_result[0]["generated_text"]
21
 
22
  iface = gr.Interface(fn=generator, inputs="text", outputs="text")