micrem73 commited on
Commit
ab6ced1
1 Parent(s): f466000

Update app.py

Browse files

ho allungato max_length peril nostro progetto

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")