Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ text2img = StableDiffusionPipeline.from_pretrained("Mitsua/mitsua-diffusion-one"
|
|
5 |
text2img.safety_checker=None # It is practically impossible for Mitsua to generate NSFW images
|
6 |
|
7 |
def predict(text):
|
8 |
-
|
|
|
9 |
|
10 |
demo = gr.Interface(
|
11 |
fn=predict,
|
|
|
5 |
text2img.safety_checker=None # It is practically impossible for Mitsua to generate NSFW images
|
6 |
|
7 |
def predict(text):
|
8 |
+
image = text2img(text).images[0]
|
9 |
+
return image
|
10 |
|
11 |
demo = gr.Interface(
|
12 |
fn=predict,
|