ahmadalfakeh commited on
Commit
e258f89
·
verified ·
1 Parent(s): b6f6fde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -28,6 +28,9 @@ def check_text(prompt, negative=""):
28
  for i in bad_words_negative:
29
  if i in negative:
30
  return True
 
 
 
31
  return False
32
 
33
 
 
28
  for i in bad_words_negative:
29
  if i in negative:
30
  return True
31
+ for i in bad_words:
32
+ if i.lower() in prompt:
33
+ return True
34
  return False
35
 
36