randomtable commited on
Commit
df63923
·
verified ·
1 Parent(s): 2b54d8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def generate_image(prompt, ckpt):
65
  images, has_nsfw_concepts = check_nsfw_images(results.images)
66
  if any(has_nsfw_concepts):
67
  gr.Warning("NSFW content detected.")
68
- return Image.new("RGB", (512, 512))
69
  return images[0]
70
  return results.images[0]
71
 
 
65
  images, has_nsfw_concepts = check_nsfw_images(results.images)
66
  if any(has_nsfw_concepts):
67
  gr.Warning("NSFW content detected.")
68
+ return images[0]
69
  return images[0]
70
  return results.images[0]
71