ktrndy commited on
Commit
ac926d2
·
verified ·
1 Parent(s): 818f311

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -19
app.py CHANGED
@@ -137,25 +137,25 @@ with gr.Blocks(css=css, fill_height=True) as demo:
137
  controlnet_checkbox = gr.Checkbox(
138
  label="ControlNet",
139
  )
140
- with gr.Group(visible=False) as controlnet_params:
141
- control_strength = gr.Slider(
142
- label="ControlNet conditioning scale",
143
- minimum=0.0,
144
- maximum=1.0,
145
- step=0.01,
146
- value=1.0,
147
- )
148
- control_mode = gr.Dropdown(
149
- label="ControlNet mode",
150
- choices=["edge_detection", "other"],
151
- value="edge_detection",
152
- max_choices=1
153
- )
154
- controlnet_checkbox.change(
155
- controlnet_params,
156
- inputs=controlnet_checkbox,
157
- outputs=controlnet_params
158
- )
159
 
160
  with gr.Accordion("Optional Settings", open=False):
161
 
 
137
  controlnet_checkbox = gr.Checkbox(
138
  label="ControlNet",
139
  )
140
+ # with gr.Group(visible=False) as controlnet_params:
141
+ # control_strength = gr.Slider(
142
+ # label="ControlNet conditioning scale",
143
+ # minimum=0.0,
144
+ # maximum=1.0,
145
+ # step=0.01,
146
+ # value=1.0,
147
+ # )
148
+ # control_mode = gr.Dropdown(
149
+ # label="ControlNet mode",
150
+ # choices=["edge_detection", "other"],
151
+ # value="edge_detection",
152
+ # max_choices=1
153
+ # )
154
+ # controlnet_checkbox.change(
155
+ # controlnet_params,
156
+ # inputs=controlnet_checkbox,
157
+ # outputs=controlnet_params
158
+ # )
159
 
160
  with gr.Accordion("Optional Settings", open=False):
161