(model_path_val)
| 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, |
nothing calls this directly
no test coverage detected