Spaces:
Running
on
Zero
Running
on
Zero
AlekseyCalvin
commited on
Commit
•
2bf8e67
1
Parent(s):
52dfea4
Update app.py
Browse files
app.py
CHANGED
@@ -106,10 +106,8 @@ def run_lora(prompt, negative_prompt, cfg_scale, steps, selected_index, randomiz
|
|
106 |
with calculateDuration(f"Loading LoRA weights for {selected_lora['title']}"):
|
107 |
if "weights" in selected_lora:
|
108 |
pipe.load_lora_weights(lora_path, weight_name=selected_lora["weights"])
|
109 |
-
pipe.fuse_lora(lora_scale=lora_scale)
|
110 |
else:
|
111 |
pipe.load_lora_weights(lora_path)
|
112 |
-
pipe.fuse_lora(lora_scale=lora_scale)
|
113 |
|
114 |
# Set random seed for reproducibility
|
115 |
with calculateDuration("Randomizing seed"):
|
|
|
106 |
with calculateDuration(f"Loading LoRA weights for {selected_lora['title']}"):
|
107 |
if "weights" in selected_lora:
|
108 |
pipe.load_lora_weights(lora_path, weight_name=selected_lora["weights"])
|
|
|
109 |
else:
|
110 |
pipe.load_lora_weights(lora_path)
|
|
|
111 |
|
112 |
# Set random seed for reproducibility
|
113 |
with calculateDuration("Randomizing seed"):
|