Update app.py
Browse files
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 |
-
"
|
| 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)
|