Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -78,8 +78,9 @@ def predict(prompt, guidance, steps, seed=1231231):
|
|
78 |
else False
|
79 |
)
|
80 |
if nsfw_content_detected:
|
81 |
-
gr.
|
82 |
-
|
|
|
83 |
return results.images[0]
|
84 |
|
85 |
|
|
|
78 |
else False
|
79 |
)
|
80 |
if nsfw_content_detected:
|
81 |
+
nsfw=gr.Button("🕹️NSFW🎨", scale=1)
|
82 |
+
# gr.Warning("NSFW content detected.")
|
83 |
+
# return Image.new("RGB", (512, 512))
|
84 |
return results.images[0]
|
85 |
|
86 |
|