You can also use the pipeline locally. The only difference is you need to download the weights first:  
```bash
!git lfs install
!git clone https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5
```  
Then load the saved weights into the pipeline:  
```python
>>> pipeline = DiffusionPipeline.from_pretrained("./stable-diffusion-v1-5", use_safetensors=True)
```  
Now, you can run the pipeline as you would in the section above.