Walmart-the-bag commited on
Commit
7cf7c64
·
verified ·
1 Parent(s): d605323

add nsfw block

Browse files

I have to add this due to OpenAI policy, which prohibits any of this content... wonder why. suckers; you can host this locally if u wanna be weird

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -12,6 +12,7 @@ headers = {
12
  profanity.load_censor_words()
13
  no_nsfw_image_path = "no_nsfw.png"
14
 
 
15
  def is_nsfw(text):
16
  return profanity.contains_profanity(text)
17
 
 
12
  profanity.load_censor_words()
13
  no_nsfw_image_path = "no_nsfw.png"
14
 
15
+ # I have to add this due to OpenAI policy, which prohibits any of this content... wonder why. suckers; you can host this locally if u wanna be weird
16
  def is_nsfw(text):
17
  return profanity.contains_profanity(text)
18