Spaces:
Sleeping
Sleeping
mindwrapped
commited on
Commit
•
27c1055
1
Parent(s):
ba9f037
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def generate_text(text, temperature):
|
|
18 |
for i, sample_output in enumerate(sample_outputs):
|
19 |
out = tokenizer.decode(sample_output, skip_special_tokens=True)
|
20 |
|
21 |
-
if len(out) >
|
22 |
stop = True
|
23 |
|
24 |
return out
|
|
|
18 |
for i, sample_output in enumerate(sample_outputs):
|
19 |
out = tokenizer.decode(sample_output, skip_special_tokens=True)
|
20 |
|
21 |
+
if len(out) > 150:
|
22 |
stop = True
|
23 |
|
24 |
return out
|