Geek7 commited on
Commit
91fbd9d
·
verified ·
1 Parent(s): 5b383c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ def generate_api():
79
  if is_prompt_explicit(prompt):
80
  # Return the pre-defined "NSFW.jpg" image if the content is explicit
81
  return send_file(
82
- "NSFW.jpg", # Make sure this file exists in your project directory
83
  mimetype='image/jpeg',
84
  as_attachment=False,
85
  download_name='NSFW_detected.jpg' # The name for download (optional)
 
79
  if is_prompt_explicit(prompt):
80
  # Return the pre-defined "NSFW.jpg" image if the content is explicit
81
  return send_file(
82
+ "nsfw.jpg", # Make sure this file exists in your project directory
83
  mimetype='image/jpeg',
84
  as_attachment=False,
85
  download_name='NSFW_detected.jpg' # The name for download (optional)