Update app.py
Browse files
app.py
CHANGED
@@ -38,9 +38,9 @@ def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance
|
|
38 |
return image
|
39 |
|
40 |
examples = [
|
41 |
-
"
|
42 |
-
"
|
43 |
-
"
|
44 |
]
|
45 |
|
46 |
css="""
|
@@ -59,7 +59,7 @@ with gr.Blocks(css=css) as demo:
|
|
59 |
|
60 |
with gr.Column(elem_id="col-container"):
|
61 |
gr.Markdown(f"""
|
62 |
-
# Text-to-Image
|
63 |
Currently running on {power_device}.
|
64 |
""")
|
65 |
|
@@ -122,6 +122,7 @@ with gr.Blocks(css=css) as demo:
|
|
122 |
maximum=10.0,
|
123 |
step=0.1,
|
124 |
value=0.0,
|
|
|
125 |
)
|
126 |
|
127 |
num_inference_steps = gr.Slider(
|
@@ -130,6 +131,7 @@ with gr.Blocks(css=css) as demo:
|
|
130 |
maximum=12,
|
131 |
step=1,
|
132 |
value=2,
|
|
|
133 |
)
|
134 |
|
135 |
gr.Examples(
|
|
|
38 |
return image
|
39 |
|
40 |
examples = [
|
41 |
+
"Sunset in Hawaii, cold color palette, muted colors, detailed, 8k",
|
42 |
+
"A dog catching a baseball",
|
43 |
+
"Vanilla ice cream with hot fudge",
|
44 |
]
|
45 |
|
46 |
css="""
|
|
|
59 |
|
60 |
with gr.Column(elem_id="col-container"):
|
61 |
gr.Markdown(f"""
|
62 |
+
# Text-to-Image Generation with Stable Diffusion
|
63 |
Currently running on {power_device}.
|
64 |
""")
|
65 |
|
|
|
122 |
maximum=10.0,
|
123 |
step=0.1,
|
124 |
value=0.0,
|
125 |
+
info="Controls how much the text prompt influences the result"
|
126 |
)
|
127 |
|
128 |
num_inference_steps = gr.Slider(
|
|
|
131 |
maximum=12,
|
132 |
step=1,
|
133 |
value=2,
|
134 |
+
info="In many steps will the denoiser denoise the image?"
|
135 |
)
|
136 |
|
137 |
gr.Examples(
|