Spaces:
Running
on
Zero
Running
on
Zero
silly
Browse files
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)
|