(tool)
| 33 | strength = gr.Checkbox(label='Control override denoise strength', value=True, visible=False) |
| 34 | |
| 35 | def display(tool): |
| 36 | return [ |
| 37 | gr.update(visible=tool in ['Redux']), |
| 38 | gr.update(visible=tool in ['Canny', 'Depth', 'Depth (Nunchaku)']), |
| 39 | gr.update(visible=tool in ['Canny', 'Depth', 'Depth (Nunchaku)']), |
| 40 | ] |
| 41 | |
| 42 | tool.change(fn=display, inputs=[tool], outputs=[prompt, process, strength]) |
| 43 | return [tool, prompt, strength, process] |