Himanshu-AT commited on
Commit
8950419
·
1 Parent(s): 628a04c

remove misconfig

Browse files
Files changed (1) hide show
  1. app.py +2 -22
app.py CHANGED
@@ -170,26 +170,6 @@ with gr.Blocks(css=css) as demo:
170
 
171
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
172
 
173
- with gr.Row():
174
-
175
- width = gr.Slider(
176
- label="Width",
177
- minimum=256,
178
- maximum=MAX_IMAGE_SIZE,
179
- step=32,
180
- value=1024,
181
- visible=False
182
- )
183
-
184
- height = gr.Slider(
185
- label="Height",
186
- minimum=256,
187
- maximum=MAX_IMAGE_SIZE,
188
- step=32,
189
- value=1024,
190
- visible=False
191
- )
192
-
193
  with gr.Row():
194
 
195
  guidance_scale = gr.Slider(
@@ -218,7 +198,7 @@ with gr.Blocks(css=css) as demo:
218
  value=1024,
219
  )
220
 
221
- num_inference_steps = gr.Slider(
222
  label="height",
223
  minimum=512,
224
  maximum=3072,
@@ -229,7 +209,7 @@ with gr.Blocks(css=css) as demo:
229
  gr.on(
230
  triggers=[run_button.click, prompt.submit],
231
  fn = infer,
232
- inputs = [edit_image, prompt, prompt2, width, height, seed, randomize_seed, guidance_scale, num_inference_steps],
233
  outputs = [result, seed]
234
  )
235
 
 
170
 
171
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
172
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  with gr.Row():
174
 
175
  guidance_scale = gr.Slider(
 
198
  value=1024,
199
  )
200
 
201
+ height = gr.Slider(
202
  label="height",
203
  minimum=512,
204
  maximum=3072,
 
209
  gr.on(
210
  triggers=[run_button.click, prompt.submit],
211
  fn = infer,
212
+ inputs = [edit_image, prompt,prompt2, width, height, seed, randomize_seed, guidance_scale, num_inference_steps],
213
  outputs = [result, seed]
214
  )
215