Spaces:
Runtime error
Runtime error
Commit
·
90789f2
1
Parent(s):
3ff5e41
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,9 +100,9 @@ def merge_and_run(prompt, negative_prompt, shuffled_items, lora_1_scale=0.5, lor
|
|
| 100 |
pipe = copy.deepcopy(original_pipe)
|
| 101 |
pipe.to("cuda")
|
| 102 |
print("Loading LoRA weights...")
|
| 103 |
-
pipe.load_lora_weights(state_dict_1
|
| 104 |
pipe.fuse_lora(lora_1_scale)
|
| 105 |
-
pipe.load_lora_weights(state_dict_2
|
| 106 |
pipe.fuse_lora(lora_2_scale)
|
| 107 |
print("Loaded LoRA weights.")
|
| 108 |
if negative_prompt == "":
|
|
|
|
| 100 |
pipe = copy.deepcopy(original_pipe)
|
| 101 |
pipe.to("cuda")
|
| 102 |
print("Loading LoRA weights...")
|
| 103 |
+
pipe.load_lora_weights(state_dict_1)
|
| 104 |
pipe.fuse_lora(lora_1_scale)
|
| 105 |
+
pipe.load_lora_weights(state_dict_2)
|
| 106 |
pipe.fuse_lora(lora_2_scale)
|
| 107 |
print("Loaded LoRA weights.")
|
| 108 |
if negative_prompt == "":
|