MCPcopy Index your code
hub / github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT / diable_export

Function diable_export

ui_trt.py:297–309  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

295
296
297def diable_export(version):
298 if version == "Default":
299 return (
300 gr.update(visible=False),
301 gr.update(visible=True),
302 gr.update(visible=False),
303 )
304 else:
305 return (
306 gr.update(visible=True),
307 gr.update(visible=False),
308 gr.update(visible=True),
309 )
310
311
312def disable_lora_export(lora):

Callers

nothing calls this directly

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected