Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,8 +29,8 @@ class SimpleDiffusionPipeline(DiffusionPipeline):
|
|
| 29 |
negative_prompt=None,
|
| 30 |
height=640,
|
| 31 |
width=640,
|
| 32 |
-
num_inference_steps=
|
| 33 |
-
guidance_scale=5.
|
| 34 |
generator=None,
|
| 35 |
**kwargs,
|
| 36 |
):
|
|
@@ -166,7 +166,7 @@ css = """
|
|
| 166 |
|
| 167 |
with gr.Blocks(css=css) as demo:
|
| 168 |
with gr.Column(elem_id="col-container"):
|
| 169 |
-
gr.Markdown(" #
|
| 170 |
|
| 171 |
with gr.Row():
|
| 172 |
prompt = gr.Text(
|
|
@@ -205,7 +205,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 205 |
minimum=MIN_IMAGE_SIZE,
|
| 206 |
maximum=MAX_IMAGE_SIZE,
|
| 207 |
step=64,
|
| 208 |
-
value=
|
| 209 |
)
|
| 210 |
|
| 211 |
height = gr.Slider(
|
|
@@ -222,7 +222,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 222 |
minimum=0.0,
|
| 223 |
maximum=10.0,
|
| 224 |
step=0.5,
|
| 225 |
-
value=
|
| 226 |
)
|
| 227 |
|
| 228 |
num_inference_steps = gr.Slider(
|
|
@@ -230,7 +230,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 230 |
minimum=1,
|
| 231 |
maximum=50,
|
| 232 |
step=1,
|
| 233 |
-
value=
|
| 234 |
)
|
| 235 |
|
| 236 |
gr.Examples(examples=examples, inputs=[prompt])
|
|
|
|
| 29 |
negative_prompt=None,
|
| 30 |
height=640,
|
| 31 |
width=640,
|
| 32 |
+
num_inference_steps=50,
|
| 33 |
+
guidance_scale=5.0,
|
| 34 |
generator=None,
|
| 35 |
**kwargs,
|
| 36 |
):
|
|
|
|
| 166 |
|
| 167 |
with gr.Blocks(css=css) as demo:
|
| 168 |
with gr.Column(elem_id="col-container"):
|
| 169 |
+
gr.Markdown(" # Simple Diffusion (sdxs)")
|
| 170 |
|
| 171 |
with gr.Row():
|
| 172 |
prompt = gr.Text(
|
|
|
|
| 205 |
minimum=MIN_IMAGE_SIZE,
|
| 206 |
maximum=MAX_IMAGE_SIZE,
|
| 207 |
step=64,
|
| 208 |
+
value=448,
|
| 209 |
)
|
| 210 |
|
| 211 |
height = gr.Slider(
|
|
|
|
| 222 |
minimum=0.0,
|
| 223 |
maximum=10.0,
|
| 224 |
step=0.5,
|
| 225 |
+
value=5.0,
|
| 226 |
)
|
| 227 |
|
| 228 |
num_inference_steps = gr.Slider(
|
|
|
|
| 230 |
minimum=1,
|
| 231 |
maximum=50,
|
| 232 |
step=1,
|
| 233 |
+
value=50,
|
| 234 |
)
|
| 235 |
|
| 236 |
gr.Examples(examples=examples, inputs=[prompt])
|