multimodalart HF staff commited on
Commit
d7795fb
Β·
verified Β·
1 Parent(s): 9c48cce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)