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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -14,7 +14,10 @@ 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
 
19
  def generate_image(prompt, model):
20
  if is_nsfw(prompt):
 
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
+ result = profanity.contains_profanity(text)
18
+ print(f"NSFW Check for prompt '{text}': {result}")
19
+ return result
20
+
21
 
22
  def generate_image(prompt, model):
23
  if is_nsfw(prompt):