Spaces:
Paused
Paused
Commit
·
eb6d120
1
Parent(s):
758b9dc
Update app.py
Browse files
app.py
CHANGED
@@ -168,8 +168,8 @@ def run_lora(prompt, negative, lora_scale, selected_state, sdxl_loras, sdxl_lora
|
|
168 |
if last_lora != repo_name:
|
169 |
#if(last_fused):
|
170 |
#pipe.unfuse_lora()
|
171 |
-
pipe.load_lora_weights(loaded_state_dict, adapter_name=selected_state.index]["repo"])
|
172 |
-
pipe.set_adapters([selected_state.index]["repo"], "lcm_lora"], adapter_weights=[0.8, 1.0])
|
173 |
#last_fused = True
|
174 |
is_pivotal = sdxl_loras[selected_state.index]["is_pivotal"]
|
175 |
if(is_pivotal):
|
|
|
168 |
if last_lora != repo_name:
|
169 |
#if(last_fused):
|
170 |
#pipe.unfuse_lora()
|
171 |
+
pipe.load_lora_weights(loaded_state_dict, adapter_name=sdxl_loras[selected_state.index]["repo"])
|
172 |
+
pipe.set_adapters(sdxl_loras[selected_state.index]["repo"], "lcm_lora"], adapter_weights=[0.8, 1.0])
|
173 |
#last_fused = True
|
174 |
is_pivotal = sdxl_loras[selected_state.index]["is_pivotal"]
|
175 |
if(is_pivotal):
|