Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -186,12 +186,12 @@ def run(prompt, steps, width, height, images, scale):
|
|
186 |
image = gr.Image(type="pil", label="Image Grid")
|
187 |
css = ".output-image{height: 528px !important} .output-carousel .output-image{height:272px !important} a{text-decoration: underline}"
|
188 |
iface = gr.Interface(fn=run, inputs=[
|
189 |
-
gr.Textbox(label="Prompt - try adding increments to your prompt such as 'oil on canvas', 'a painting', 'a book cover'",
|
190 |
-
gr.Slider(label="Steps - more steps can increase quality but will take longer to generate",
|
191 |
-
gr.Radio(label="Width", choices=[32,64,128,256],
|
192 |
-
gr.Radio(label="Height", choices=[32,64,128,256],
|
193 |
-
gr.Slider(label="Images - How many images you wish to generate",
|
194 |
-
gr.Slider(label="Diversity scale - How different from one another you wish the images to be",
|
195 |
#gr.inputs.Slider(label="ETA - between 0 and 1. Lower values can provide better quality, higher values can be more diverse",default=0.0,minimum=0.0, maximum=1.0,step=0.1),
|
196 |
],
|
197 |
outputs=[gr.Gallery(label="Individual images"),
|
|
|
186 |
image = gr.Image(type="pil", label="Image Grid")
|
187 |
css = ".output-image{height: 528px !important} .output-carousel .output-image{height:272px !important} a{text-decoration: underline}"
|
188 |
iface = gr.Interface(fn=run, inputs=[
|
189 |
+
gr.Textbox(label="Prompt - try adding increments to your prompt such as 'oil on canvas', 'a painting', 'a book cover'",placeholder="chalk pastel drawing of a dog wearing a funny hat"),
|
190 |
+
gr.Slider(label="Steps - more steps can increase quality but will take longer to generate",value=45,maximum=50,minimum=1,step=1),
|
191 |
+
gr.Radio(label="Width", choices=[32,64,128,256],value=256),
|
192 |
+
gr.Radio(label="Height", choices=[32,64,128,256],value=256),
|
193 |
+
gr.Slider(label="Images - How many images you wish to generate", value=2, step=1, minimum=1, maximum=4),
|
194 |
+
gr.Slider(label="Diversity scale - How different from one another you wish the images to be",value=5.0, minimum=1.0, maximum=15.0),
|
195 |
#gr.inputs.Slider(label="ETA - between 0 and 1. Lower values can provide better quality, higher values can be more diverse",default=0.0,minimum=0.0, maximum=1.0,step=0.1),
|
196 |
],
|
197 |
outputs=[gr.Gallery(label="Individual images"),
|