app.py: update defaults for selection sliders

#3
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -119,7 +119,7 @@ with gr.Blocks(css=css) as demo:
119
  with gr.Column(scale=6, min_width=600):
120
  prompt = gr.Textbox("puppies in a cloud, 4k", placeholder="Prompt", show_label=False, lines=3)
121
  negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3)
122
- with gr.Column(equal_height=True):
123
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
124
 
125
  with gr.Row():
@@ -150,18 +150,18 @@ with gr.Blocks(css=css) as demo:
150
  ])
151
 
152
  with gr.Column(scale=1):
153
- steps = gr.Slider(label="Sampling Steps", miniumum=1, maximum=50, value=25, step=1)
154
 
155
  with gr.Row():
156
  with gr.Column(scale=1):
157
- width = gr.Slider(label="Width", miniumum=1, maximum=1024, value=512, step=1)
158
- height = gr.Slider(label="Height", miniumum=1, maximum=1024, value=512, step=1)
159
 
160
  with gr.Column(scale=1):
161
- batch_size = gr.Slider(label="Batch Size", miniumum=1, maximum=1, value=1)
162
- batch_count = gr.Slider(label="Batch Count", miniumum=1, maximum=1, value=1)
163
 
164
- cfg_scale = gr.Slider(label="CFG Scale", miniumum=1, maximum=20, value=7, step=1)
165
  seed = gr.Number(label="Seed", value=-1)
166
 
167
 
 
119
  with gr.Column(scale=6, min_width=600):
120
  prompt = gr.Textbox("puppies in a cloud, 4k", placeholder="Prompt", show_label=False, lines=3)
121
  negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3)
122
+ with gr.Column():
123
  text_button = gr.Button("Generate", variant='primary', elem_id="generate")
124
 
125
  with gr.Row():
 
150
  ])
151
 
152
  with gr.Column(scale=1):
153
+ steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=30, value=25, step=1)
154
 
155
  with gr.Row():
156
  with gr.Column(scale=1):
157
+ width = gr.Slider(label="Width", minimum=1, maximum=1024, value=512, step=8)
158
+ height = gr.Slider(label="Height", minimum=1, maximum=1024, value=512, step=8)
159
 
160
  with gr.Column(scale=1):
161
+ batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
162
+ batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
163
 
164
+ cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
165
  seed = gr.Number(label="Seed", value=-1)
166
 
167