radames commited on
Commit
549f820
1 Parent(s): d52c01d
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -133,7 +133,6 @@ def predict(prompt, seed=1231231):
133
  if any(has_nsfw_concepts):
134
  gr.Warning("NSFW content detected.")
135
  return Image.new("RGB", (512, 512))
136
- return images[0]
137
  image = results.images[0]
138
  with tempfile.NamedTemporaryFile(suffix=".jpg", delete=False) as tmpfile:
139
  image.save(tmpfile, "JPEG", quality=80, optimize=True, progressive=True)
 
133
  if any(has_nsfw_concepts):
134
  gr.Warning("NSFW content detected.")
135
  return Image.new("RGB", (512, 512))
 
136
  image = results.images[0]
137
  with tempfile.NamedTemporaryFile(suffix=".jpg", delete=False) as tmpfile:
138
  image.save(tmpfile, "JPEG", quality=80, optimize=True, progressive=True)