Spaces:
Runtime error
Runtime error
autonomous019
commited on
Commit
•
9163025
1
Parent(s):
e2924dd
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def create_story(text_seed):
|
|
60 |
MinLengthLogitsProcessor(10, eos_token_id=model.config.eos_token_id),
|
61 |
]
|
62 |
)
|
63 |
-
stopping_criteria = StoppingCriteriaList([MaxLengthCriteria(max_length=
|
64 |
|
65 |
outputs = model.greedy_search(
|
66 |
input_ids, logits_processor=logits_processor, stopping_criteria=stopping_criteria
|
|
|
60 |
MinLengthLogitsProcessor(10, eos_token_id=model.config.eos_token_id),
|
61 |
]
|
62 |
)
|
63 |
+
stopping_criteria = StoppingCriteriaList([MaxLengthCriteria(max_length=100)])
|
64 |
|
65 |
outputs = model.greedy_search(
|
66 |
input_ids, logits_processor=logits_processor, stopping_criteria=stopping_criteria
|