Lifeinhockey commited on
Commit
9e23671
·
verified ·
1 Parent(s): 47b5782

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -290,7 +290,7 @@ with gr.Blocks(css=css) as demo:
290
  value=False,
291
  )
292
 
293
- with gr.Column(visible=False) as control_net_options_2:
294
  strength_cn = gr.Slider(
295
  label="Strength",
296
  minimum=0.0,
@@ -299,7 +299,7 @@ with gr.Blocks(css=css) as demo:
299
  step=0.05,
300
  )
301
 
302
- with gr.Column(visible=False) as control_net_options_1:
303
  control_strength = gr.Slider(
304
  label="Control Strength",
305
  minimum=0.0,
@@ -323,7 +323,8 @@ with gr.Blocks(css=css) as demo:
323
  use_control_net.change(
324
  fn=lambda x: gr.Row.update(visible=x),
325
  inputs=use_control_net,
326
- outputs=[control_net_options_1, control_net_options_2]
 
327
  )
328
  # --------------------------------------------------------------------------------------
329
 
 
290
  value=False,
291
  )
292
 
293
+ with gr.Column(visible=False) as control_net_options:
294
  strength_cn = gr.Slider(
295
  label="Strength",
296
  minimum=0.0,
 
299
  step=0.05,
300
  )
301
 
302
+ with gr.Column(visible=False) as control_net_options:
303
  control_strength = gr.Slider(
304
  label="Control Strength",
305
  minimum=0.0,
 
323
  use_control_net.change(
324
  fn=lambda x: gr.Row.update(visible=x),
325
  inputs=use_control_net,
326
+ #outputs=[control_net_options_1, control_net_options_2]
327
+ outputs=control_net_options
328
  )
329
  # --------------------------------------------------------------------------------------
330