MCPcopy Index your code
hub / github.com/vladmandic/sdnext / display

Method display

scripts/flux_tools.py:35–40  ·  view source on GitHub ↗
(tool)

Source from the content-addressed store, hash-verified

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]

Callers 15

full_vqgan_decodeFunction · 0.45
full_vae_decodeFunction · 0.45
vae_postprocessFunction · 0.45
generate_click_generatorFunction · 0.45
generate_clickFunction · 0.45
reportFunction · 0.45
read_state_dictFunction · 0.45
run_segmentFunction · 0.45
__init__Method · 0.45
create_itemMethod · 0.45
load_image_encoderFunction · 0.45

Calls 1

updateMethod · 0.45

Tested by 5

test_tritonFunction · 0.36
test_controlnetsFunction · 0.36
test_adaptersFunction · 0.36
test_xsFunction · 0.36
test_liteFunction · 0.36