generator = torch.Generator("cuda").manual_seed(0)
```  
Now you can generate an image:  
```python
image = pipeline(prompt, generator=generator).images[0]
image
```  
<div class="flex justify-center">
<img src="https://huggingface.co/datasets/diffusers/docs-images/resolve/main/stable_diffusion_101/sd_101_1.png">
</div>