Spaces:
Runtime error
Runtime error
add nsfw block
Browse filesI 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
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 |
|