Lifeinhockey commited on
Commit
5018fb9
·
verified ·
1 Parent(s): 90b30ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -214,11 +214,11 @@ with gr.Blocks(css=css) as demo:
214
  value=512,
215
  )
216
 
217
- def toggle_controlnet_options(use_control_net):
218
  if use_control_net:
219
- return True
220
  else:
221
- return False
222
 
223
  with gr.Blocks(): #as demo:
224
  with gr.Row():
 
214
  value=512,
215
  )
216
 
217
+ def update_controlnet_options(use_control_net):
218
  if use_control_net:
219
+ return gr.Column.update(visible=True)
220
  else:
221
+ return gr.Column.update(visible=False)
222
 
223
  with gr.Blocks(): #as demo:
224
  with gr.Row():