Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -258,6 +258,7 @@ def run_lora(face_image, prompt, negative, lora_scale, selected_state, face_stre
|
|
| 258 |
if last_lora != repo_name:
|
| 259 |
if(last_fused):
|
| 260 |
pipe.unfuse_lora()
|
|
|
|
| 261 |
pipe.load_lora_weights(loaded_state_dict)
|
| 262 |
pipe.fuse_lora()
|
| 263 |
last_fused = True
|
|
|
|
| 258 |
if last_lora != repo_name:
|
| 259 |
if(last_fused):
|
| 260 |
pipe.unfuse_lora()
|
| 261 |
+
pipe.unload_lora_weights()
|
| 262 |
pipe.load_lora_weights(loaded_state_dict)
|
| 263 |
pipe.fuse_lora()
|
| 264 |
last_fused = True
|