Update app.py
Browse files23 unmodified lines242526272829303123 unmodified lines# Custom method to load and apply LoRA weights to the Stable Diffusion pipelinedef load_lora_model(pipe, lora_model_path):# Load the LoRA weightslora_weights = torch.load(lora_model_path, map_location=pipe.device) # Load LoRA model to the correct device# Print available attributes of the model to check access to `unet` (optional)print(dir(pipe)) # This will list all attributes and methods of the `pipe` object23 unmodified lines24252627282930313223 unmodified lines# Custom method to load and apply LoRA weights to the Stable Diffusion pipelinedef load_lora_model(pipe, lora_model_path):# When loading the LoRA weightslora_weights = torch.load(lora_model_path, map_location=device, weights_only=True)# Print available attributes of the model to check access to `unet` (optional)print(dir(pipe)) # This will list all attributes and methods of the `pipe` object
app.py+3-2