multimodalart HF staff commited on
Commit
9c48cce
1 Parent(s): 0b9fed4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +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 is not None:
36
  pipe.load_lora_weights(lora, adapter_name="custom")
37
  pipe.fuse_lora(lora_scale=0.9)
38
  print(f"Seed before sending to generator for prompt: `{prompt}`", seed)
 
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)
38
  print(f"Seed before sending to generator for prompt: `{prompt}`", seed)