Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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.
|
| 29 |
-
pipe.load_lora_weights(lora.id, weight=weight, adapter_name=lora.
|
| 30 |
-
adapter_names.append(lora.
|
| 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}")
|