AmpleBasis commited on
Commit
b0c2d2b
1 Parent(s): 93dc84e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -38,16 +38,16 @@ with gr.Blocks() as demo:
38
  with gr.Column():
39
  prompt = gr.Textbox(lines=1, value="photo of symr cat", label="Prompt")
40
  negative_prompt = gr.Textbox(lines=1, value="deformed,blurry,lowres", label="Negative Prompt")
41
- samples = gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of Images")
42
- num_steps = gr.Slider(label="Steps",value=40)
43
- ugs = gr.Slider(value=7, minimum=5, maximum=25, step=1, label="Unconditional Guidance Scale")
44
  run = gr.Button(value="Generate")
45
  with gr.Column():
46
  gallery = gr.Gallery(label="Outputs").style(grid=(1,2))
47
 
48
  run.click(generate_images, inputs=[prompt,negative_prompt, samples, num_steps, ugs], outputs=gallery)
49
 
50
- gr.Examples([["photo of symr cat wearing a pirate costume", "dog,human,deformed,lowres",1, 40, 7]],
51
 
52
  [prompt,negative_prompt, samples,num_steps, ugs], gallery, generate_images)
53
 
 
38
  with gr.Column():
39
  prompt = gr.Textbox(lines=1, value="photo of symr cat", label="Prompt")
40
  negative_prompt = gr.Textbox(lines=1, value="deformed,blurry,lowres", label="Negative Prompt")
41
+ samples = gr.Slider(minimum=1, maximum=5, value=2, step=1, label="Number of Images")
42
+ num_steps = gr.Slider(label="Steps",value=50)
43
+ ugs = gr.Slider(value=7, minimum=5, maximum=25, step=1, label="Guidance Scale: How closely should the images resemble the prompt. Default is 7")
44
  run = gr.Button(value="Generate")
45
  with gr.Column():
46
  gallery = gr.Gallery(label="Outputs").style(grid=(1,2))
47
 
48
  run.click(generate_images, inputs=[prompt,negative_prompt, samples, num_steps, ugs], outputs=gallery)
49
 
50
+ gr.Examples([["photo of symr cat wearing a pirate costume", "dog,human,deformed,lowres",2, 50, 7]],
51
 
52
  [prompt,negative_prompt, samples,num_steps, ugs], gallery, generate_images)
53