Commit
·
47017f5
1
Parent(s):
2d2b41f
Updated examples
Browse files
app.py
CHANGED
@@ -173,18 +173,18 @@ title = "Stable Diffusion with Textual Inversion"
|
|
173 |
description = "A simple Gradio interface to infer Stable Diffusion and generate images with different art style"
|
174 |
examples = [["A sweet potato farm", 'Concept', 10, 1.5, 1],
|
175 |
["Sky full of cotton candy", 'Realistic', 10, 3.5, 2],
|
176 |
-
["
|
177 |
["Water skiing on a lake", 'Ricky', 10, 7.5, 4],
|
178 |
-
["
|
179 |
|
180 |
demo = gr.Interface(inference,
|
181 |
inputs = [gr.Textbox(label="Prompt", type="text"),
|
182 |
gr.Dropdown(label="Style", choices=['Concept', 'Realistic', 'Line',
|
183 |
'Ricky', 'Plane Scape'], value="Concept"),
|
184 |
-
gr.Slider(10,
|
185 |
gr.Slider(1, 10, 7.5, step = 0.1, label="Guidance scale"),
|
186 |
gr.Slider(0, 10000, 1, step = 1, label="Seed")],
|
187 |
-
outputs= [gr.Image(width=320, height=320, label="
|
188 |
title=title,
|
189 |
description=description,
|
190 |
examples=examples)
|
|
|
173 |
description = "A simple Gradio interface to infer Stable Diffusion and generate images with different art style"
|
174 |
examples = [["A sweet potato farm", 'Concept', 10, 1.5, 1],
|
175 |
["Sky full of cotton candy", 'Realistic', 10, 3.5, 2],
|
176 |
+
["Kittens in the bathtub", 'Line', 10, 5.5, 3],
|
177 |
["Water skiing on a lake", 'Ricky', 10, 7.5, 4],
|
178 |
+
["Miniature pet elephant", 'Plane Scape', 10, 9.5, 5]]
|
179 |
|
180 |
demo = gr.Interface(inference,
|
181 |
inputs = [gr.Textbox(label="Prompt", type="text"),
|
182 |
gr.Dropdown(label="Style", choices=['Concept', 'Realistic', 'Line',
|
183 |
'Ricky', 'Plane Scape'], value="Concept"),
|
184 |
+
gr.Slider(10, 30, 10, step = 10, label="Inference steps"),
|
185 |
gr.Slider(1, 10, 7.5, step = 0.1, label="Guidance scale"),
|
186 |
gr.Slider(0, 10000, 1, step = 1, label="Seed")],
|
187 |
+
outputs= [gr.Image(width=320, height=320, label="Generated art")],
|
188 |
title=title,
|
189 |
description=description,
|
190 |
examples=examples)
|