MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / update_lora_choices

Function update_lora_choices

app/utils/model_components.py:150–152  ·  view source on GitHub ↗
(model_path_val)

Source from the content-addressed store, hash-verified

148
149 # 当 model_path 变化时更新 LoRA 选择
150 def update_lora_choices(model_path_val):
151 lora_choices = get_lora_choices(model_path_val)
152 return gr.update(choices=lora_choices, value=lora_choices[0] if lora_choices and lora_choices[0] else "")
153
154 model_path_input.change(
155 fn=update_lora_choices,

Callers

nothing calls this directly

Calls 2

get_lora_choicesFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected