```sh
pip install -U gradio
```  
Then, create a web demo around any Stable Diffusion-based pipeline. For example, you can create an image generation pipeline in a single line of code with Gradio's [`Interface.from_pipeline`](https://www.gradio.app/docs/interface#interface-from-pipeline) function:  
```py
from diffusers import StableDiffusionPipeline
import gradio as gr