frogleo commited on
Commit
dffc4f5
·
verified ·
1 Parent(s): fdf1179

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 modify your prompt and try again."
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 = {