Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,7 @@ def run(prompt, negative_prompt=None, guidance_scale=7.0, pag_scale=3.0, pag_lay
|
|
32 |
if not prompt and not negative_prompt:
|
33 |
guidance_scale = 0.0
|
34 |
pipe.unload_lora_weights()
|
|
|
35 |
if lora:
|
36 |
pipe.load_lora_weights(lora, adapter_name="custom")
|
37 |
pipe.fuse_lora(lora_scale=0.9)
|
|
|
32 |
if not prompt and not negative_prompt:
|
33 |
guidance_scale = 0.0
|
34 |
pipe.unload_lora_weights()
|
35 |
+
pipe.unfuse_lora()
|
36 |
if lora:
|
37 |
pipe.load_lora_weights(lora, adapter_name="custom")
|
38 |
pipe.fuse_lora(lora_scale=0.9)
|