Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -271,7 +271,7 @@ def _infer(person,garment,denoise_steps,seed):
|
|
| 271 |
# NSFW 检测
|
| 272 |
if nsfw_model and nsfw_processor:
|
| 273 |
if detect_nsfw(out_img):
|
| 274 |
-
msg = "Generated image contains NSFW content and cannot be displayed. Please
|
| 275 |
raise Exception(msg)
|
| 276 |
|
| 277 |
info = {
|
|
|
|
| 271 |
# NSFW 检测
|
| 272 |
if nsfw_model and nsfw_processor:
|
| 273 |
if detect_nsfw(out_img):
|
| 274 |
+
msg = "Generated image contains NSFW content and cannot be displayed. Please provide a different image and try again."
|
| 275 |
raise Exception(msg)
|
| 276 |
|
| 277 |
info = {
|