X-HighVoltage-X commited on
Commit
7cd35e1
·
verified ·
1 Parent(s): 69d0c8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -25,9 +25,9 @@ def activate_loras(pipe: FluxFillPipeline, loras_with_weights: list[tuple[LoRA,
25
  adapter_weights = []
26
 
27
  for lora, weight in loras_with_weights:
28
- print(f"Loading LoRA: {lora.display_name} with weight {weight}")
29
- pipe.load_lora_weights(lora.id, weight=weight, adapter_name=lora.display_name)
30
- adapter_names.append(lora.display_name)
31
  adapter_weights.append(weight)
32
 
33
  print(f"Activating adapters: {adapter_names} with weights {adapter_weights}")
 
25
  adapter_weights = []
26
 
27
  for lora, weight in loras_with_weights:
28
+ print(f"Loading LoRA: {lora.name} with weight {weight}")
29
+ pipe.load_lora_weights(lora.id, weight=weight, adapter_name=lora.name)
30
+ adapter_names.append(lora.name)
31
  adapter_weights.append(weight)
32
 
33
  print(f"Activating adapters: {adapter_names} with weights {adapter_weights}")