Krebzonide commited on
Commit
5d0cc84
1 Parent(s): 14fbbca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def generate(prompt, neg_prompt, samp_steps, cfg_scale, batch_size, seed, height
43
  prompt = prompt[10:]
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)
 
43
  prompt = prompt[10:]
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)