Geek7 commited on
Commit
26358b3
·
verified ·
1 Parent(s): 558f17d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -26,7 +26,12 @@ def home():
26
 
27
  # Simple content moderation function
28
  def is_prompt_explicit(prompt):
29
- explicit_keywords = ["sexual", "nudity", "erotic", "explicit", "porn", "pornographic", "xxx", "hentai", "fetish", "sex", "sensual", "nude", "strip", "stripping", "adult", "lewd", "provocative", "obscene", "vulgar", "intimacy", "intimate", "lust", "arouse", "seductive", "seduction", "kinky", "bdsm", "dominatrix", "bondage", "hardcore", "softcore", "topless", "bottomless", "threesome", "orgy", "incest", "taboo", "masturbation", "genital", "penis", "vagina", "breast", "boob", "nipple", "butt", "anal", "oral", "ejaculation", "climax", "moan", "foreplay", "intercourse", "naked", "exposed", "suicide", "self-harm", "overdose", "poison", "hang", "end life", "kill myself", "noose", "depression", "hopeless", "worthless", "die", "death", "harm myself"] # Add more keywords as needed
 
 
 
 
 
30
  for keyword in explicit_keywords:
31
  if keyword.lower() in prompt.lower():
32
  return True
 
26
 
27
  # Simple content moderation function
28
  def is_prompt_explicit(prompt):
29
+ # Streamlined keyword list to avoid unnecessary restrictions
30
+ explicit_keywords = [
31
+ "sexual", "porn", "hentai", "fetish", "nude", "provocative", "obscene", "vulgar", "intimate", "kinky", "hardcore",
32
+ "threesome", "orgy", "masturbation", "genital", "suicide",
33
+ "self-harm", "depression", "kill myself", "worthless"
34
+ ]
35
  for keyword in explicit_keywords:
36
  if keyword.lower() in prompt.lower():
37
  return True