akaUNik commited on
Commit
55f7df3
·
verified ·
1 Parent(s): 816e187

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def load_pipeline(model_id: str):
41
  # Load the LoRA weights into the U-Net.
42
  # This assumes that load_attn_procs loads the LoRA weights.
43
  # pipe.unet.load_attn_procs(model_id)
44
- pipe.load_lora_weights(model_id, weight_name="adapter_model.safetensors")
45
  else:
46
  pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
47
 
 
41
  # Load the LoRA weights into the U-Net.
42
  # This assumes that load_attn_procs loads the LoRA weights.
43
  # pipe.unet.load_attn_procs(model_id)
44
+ pipe.load_lora_weights(model_id, weight_name="unet/adapter_model.safetensors")
45
  else:
46
  pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
47