Krebzonide
commited on
Commit
•
14fbbca
1
Parent(s):
6dd4c00
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def generate(prompt, neg_prompt, samp_steps, cfg_scale, batch_size, seed, height
|
|
44 |
else:
|
45 |
for word in naughtyWords:
|
46 |
if prompt.find(word) > 0:
|
47 |
-
return None 58008
|
48 |
if seed < 0:
|
49 |
seed = random.randint(1,999999)
|
50 |
images = pipe(
|
|
|
44 |
else:
|
45 |
for word in naughtyWords:
|
46 |
if prompt.find(word) > 0:
|
47 |
+
return None, 58008
|
48 |
if seed < 0:
|
49 |
seed = random.randint(1,999999)
|
50 |
images = pipe(
|