Krebzonide commited on
Commit
fbdf08c
·
1 Parent(s): b0d809e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -111,7 +111,9 @@ with gr.Blocks(css=css) as demo:
111
  ex = gr.Examples(examples=examples, inputs=[prompt, negative_prompt])
112
  submit_btn.click(generate, [prompt, negative_prompt, samp_steps, guide_scale, batch_size, seed, height, width], [gallery], queue=True)
113
  height.change(update_pixel_ratio, [height, width], [pixels], queue=False)
 
114
  width.change(update_pixel_ratio, [height, width], [pixels], queue=False)
 
115
 
116
 
117
  pipe = set_base_model(model_id)
 
111
  ex = gr.Examples(examples=examples, inputs=[prompt, negative_prompt])
112
  submit_btn.click(generate, [prompt, negative_prompt, samp_steps, guide_scale, batch_size, seed, height, width], [gallery], queue=True)
113
  height.change(update_pixel_ratio, [height, width], [pixels], queue=False)
114
+ height.change(round_to_8, [height], [height], queue=False)
115
  width.change(update_pixel_ratio, [height, width], [pixels], queue=False)
116
+ width.change(round_to_8, [width], [width], queue=False)
117
 
118
 
119
  pipe = set_base_model(model_id)