nsfwalex commited on
Commit
d4b7bce
1 Parent(s): d58e98a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,8 +32,8 @@ NUM_IMAGES_PER_PROMPT = 1
32
  # Define the regular expression
33
  child_related_regex = re.compile(
34
  r'(child|children|kid|kids|baby|shota|loli|lolicon|babies|toddler|infant|juvenile|minor|underage|preteen|adolescent|youngster|youth|kindergarten|preschool|'
35
- r'([1-9]|1[0-7])\s*year(s)?\s*old|' # Matches 1 to 17 years old
36
- r'little|small|tiny|short|new\s*born\s*(boy|girl|bro|brother|sis|sister|shota|loli|lolita))',
37
  re.IGNORECASE
38
  )
39
 
 
32
  # Define the regular expression
33
  child_related_regex = re.compile(
34
  r'(child|children|kid|kids|baby|shota|loli|lolicon|babies|toddler|infant|juvenile|minor|underage|preteen|adolescent|youngster|youth|kindergarten|preschool|'
35
+ r'([1-9]|1[0-7])[\s_\-|\.\,]*year(s)?[\s_\-|\.\,]*old|' # Matches 1 to 17 years old with various separators
36
+ r'little|small|tiny|short|new[\s_\-|\.\,]*born[\s_\-|\.\,]*(boy|girl|bro|brother|sis|sister|shota|loli|lolita))',
37
  re.IGNORECASE
38
  )
39