Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -56,25 +56,34 @@ inf_steps_input = gr.inputs.Slider(
|
|
56 |
)
|
57 |
seed_input = gr.inputs.Number(default=0, label="Seed")
|
58 |
|
|
|
59 |
app = gr.Interface(
|
60 |
fn=generate_image,
|
61 |
inputs=[prompt_input, inf_steps_input, seed_input],
|
62 |
outputs="image",
|
63 |
-
title="Stable Diffusion Nano",
|
64 |
description=(
|
65 |
"Based on stable diffusion and fine-tuned on 128x128 images, "
|
66 |
-
"Stable Diffusion Nano allows
|
67 |
-
"enabling quick experimentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
),
|
|
|
69 |
# Some examples were copied from hf.co/spaces/stabilityai/stable-diffusion
|
70 |
examples=[
|
71 |
-
|
72 |
[
|
73 |
"A small cabin on top of a snowy mountain in the style of Disney, artstation",
|
74 |
-
|
75 |
-
|
76 |
],
|
77 |
-
|
78 |
],
|
79 |
)
|
80 |
|
|
|
56 |
)
|
57 |
seed_input = gr.inputs.Number(default=0, label="Seed")
|
58 |
|
59 |
+
|
60 |
app = gr.Interface(
|
61 |
fn=generate_image,
|
62 |
inputs=[prompt_input, inf_steps_input, seed_input],
|
63 |
outputs="image",
|
64 |
+
title="🤗 Stable Diffusion Nano 🧨",
|
65 |
description=(
|
66 |
"Based on stable diffusion and fine-tuned on 128x128 images, "
|
67 |
+
"[Stable Diffusion Nano](hf.co/bguisard/stable-diffusion-nano-2-1) allows "
|
68 |
+
"for fast prototyping of diffusion models, enabling quick experimentation "
|
69 |
+
"with easily available hardware."
|
70 |
+
"It performs reasonably well on several tasks, but it struggles "
|
71 |
+
"with small details such as faces."
|
72 |
+
"\n\nprompt:\nA watercolor painting of an otter"
|
73 |
+
"\n\n![images_0)](hf.co/bguisard/stable-diffusion-nano-2-1/raw/main/images_0.png)"
|
74 |
+
"\n\nprompt:\nMarvel MCU deadpool, red mask, red shirt, red gloves, black shoulders, black elbow pads, black legs, gold buckle, black belt, black mask, white eyes, black boots, fuji low light color 35mm film, downtown Osaka alley at night out of focus in background, neon lights"
|
75 |
+
"\n\n![images_1)](hf.co/bguisard/stable-diffusion-nano-2-1/raw/main/images_1.png)"
|
76 |
),
|
77 |
+
css="h1 { text-align: center }",
|
78 |
# Some examples were copied from hf.co/spaces/stabilityai/stable-diffusion
|
79 |
examples=[
|
80 |
+
["A watercolor painting of a bird", 30, 0],
|
81 |
[
|
82 |
"A small cabin on top of a snowy mountain in the style of Disney, artstation",
|
83 |
+
30,
|
84 |
+
232190380,
|
85 |
],
|
86 |
+
["A mecha robot in a favela in expressionist style", 30, 827198341273],
|
87 |
],
|
88 |
)
|
89 |
|