LEIDIA commited on
Commit
6bb48ca
Β·
verified Β·
1 Parent(s): 27273e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -155,13 +155,13 @@ with gr.Blocks() as demo:
155
 
156
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
157
 
158
- with gr.Row():
159
- width = gr.Slider(
160
- label="Width",
161
- minimum=0,
162
- maximum=MAX_IMAGE_SIZE,
163
- step=8,
164
- value=600, # Replace with defaults that work for your model
165
  )
166
 
167
  height = gr.Slider(
@@ -172,21 +172,21 @@ with gr.Blocks() as demo:
172
  value=752, # Replace with defaults that work for your model
173
  )
174
 
175
- with gr.Row():
176
- guidance_scale = gr.Slider(
177
- label="Guidance scale",
178
- minimum=0.0,
179
- maximum=1.0,
180
- step=0.1,
181
- value=0.0, # Replace with defaults that work for your model
182
  )
183
 
184
- num_inference_steps = gr.Slider(
185
- label="Number of inference steps",
186
- minimum=1,
187
- maximum=10,
188
- step=1,
189
- value=15, # Replace with defaults that work for your model
190
  )
191
 
192
  gr.Examples(examples=examples, inputs=[prompt])
 
155
 
156
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
157
 
158
+ with gr.Row():
159
+ width = gr.Slider(
160
+ label="Width",
161
+ minimum=0,
162
+ maximum=MAX_IMAGE_SIZE,
163
+ step=8,
164
+ alue=600, # Replace with defaults that work for your model
165
  )
166
 
167
  height = gr.Slider(
 
172
  value=752, # Replace with defaults that work for your model
173
  )
174
 
175
+ with gr.Row():
176
+ guidance_scale = gr.Slider(
177
+ label="Guidance scale",
178
+ minimum=0.0,
179
+ maximum=1.0,
180
+ step=0.1,
181
+ value=0.0, # Replace with defaults that work for your model
182
  )
183
 
184
+ num_inference_steps = gr.Slider(
185
+ label="Number of inference steps",
186
+ minimum=1,
187
+ maximum=10,
188
+ step=1,
189
+ value=15, # Replace with defaults that work for your model
190
  )
191
 
192
  gr.Examples(examples=examples, inputs=[prompt])