Spaces:
Runtime error
Runtime error
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>
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")
|