Spaces:
Runtime error
Runtime error
Update app.py
Browse filesho allungato max_length peril nostro progetto
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=
|
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")
|