Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -214,11 +214,11 @@ with gr.Blocks(css=css) as demo:
|
|
214 |
value=512,
|
215 |
)
|
216 |
|
217 |
-
def
|
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():
|