multimodalart HF staff commited on
Commit
5ecaf8f
·
verified ·
1 Parent(s): 5c60fc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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'",default="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",default=45,maximum=50,minimum=1,step=1),
191
- gr.Radio(label="Width", choices=[32,64,128,256],default=256),
192
- gr.Radio(label="Height", choices=[32,64,128,256],default=256),
193
- gr.Slider(label="Images - How many images you wish to generate", default=2, step=1, minimum=1, maximum=4),
194
- gr.Slider(label="Diversity scale - How different from one another you wish the images to be",default=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"),
 
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"),