Spaces:
Runtime error
Runtime error
azaninello
commited on
Commit
•
6cf0c2b
1
Parent(s):
ea0bcc0
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,8 @@ shroom_generator = pipeline("text-generation", model=AutoModelWithLMHead.from_pr
|
|
13 |
do_sample=True,
|
14 |
max_length=100,
|
15 |
top_k=50,
|
16 |
-
top_p=0.95,
|
|
|
17 |
|
18 |
def generator(inizia_la_storia = ''):
|
19 |
shroom_result = shroom_generator(inizia_la_storia, max_length=520)
|
|
|
13 |
do_sample=True,
|
14 |
max_length=100,
|
15 |
top_k=50,
|
16 |
+
top_p=0.95,
|
17 |
+
repetition_penalty=0.1)
|
18 |
|
19 |
def generator(inizia_la_storia = ''):
|
20 |
shroom_result = shroom_generator(inizia_la_storia, max_length=520)
|