Spaces:
Running
Running
Update app.py
Browse files
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 |
|