Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def home():
|
|
27 |
# Simple content moderation function
|
28 |
def is_prompt_explicit(prompt):
|
29 |
# Streamlined keyword list to avoid unnecessary restrictions
|
30 |
-
|
31 |
"sexual", "sex", "boobs", "boob", "breasts", "cleavage", "penis", "phallus", "porn", "pornography", "hentai",
|
32 |
"fetish", "nude", "nudity", "provocative", "obscene", "vulgar", "intimate", "kinky", "hardcore",
|
33 |
"threesome", "orgy", "masturbation", "masturbate", "genital", "genitals", "vagina", "vaginal",
|
@@ -40,7 +40,7 @@ def is_prompt_explicit(prompt):
|
|
40 |
"roleplay", "incest", "taboo", "voyeur", "exhibitionist", "peeping", "dildo", "sex toy", "vibrator",
|
41 |
"suicide", "self-harm", "depression", "kill myself", "worthless", "abuse", "violence", "rape",
|
42 |
"sexual violence", "molestation", "pedophilia", "child porn", "underage", "illegal content"
|
43 |
-
]
|
44 |
for keyword in explicit_keywords:
|
45 |
if keyword.lower() in prompt.lower():
|
46 |
return True
|
|
|
27 |
# Simple content moderation function
|
28 |
def is_prompt_explicit(prompt):
|
29 |
# Streamlined keyword list to avoid unnecessary restrictions
|
30 |
+
explicit_keywords = [
|
31 |
"sexual", "sex", "boobs", "boob", "breasts", "cleavage", "penis", "phallus", "porn", "pornography", "hentai",
|
32 |
"fetish", "nude", "nudity", "provocative", "obscene", "vulgar", "intimate", "kinky", "hardcore",
|
33 |
"threesome", "orgy", "masturbation", "masturbate", "genital", "genitals", "vagina", "vaginal",
|
|
|
40 |
"roleplay", "incest", "taboo", "voyeur", "exhibitionist", "peeping", "dildo", "sex toy", "vibrator",
|
41 |
"suicide", "self-harm", "depression", "kill myself", "worthless", "abuse", "violence", "rape",
|
42 |
"sexual violence", "molestation", "pedophilia", "child porn", "underage", "illegal content"
|
43 |
+
]
|
44 |
for keyword in explicit_keywords:
|
45 |
if keyword.lower() in prompt.lower():
|
46 |
return True
|