Chaining a text-to-image and image-to-image pipeline allows you to generate an image from text and use the generated image as the initial image for the image-to-image pipeline. This is useful if you want to generate an image entirely from scratch. For example, let's chain a Stable Diffusion and a Kandinsky model.  
Start by generating an image with the text-to-image pipeline:  
```py
from diffusers import AutoPipelineForText2Image, AutoPipelineForImage2Image
import torch