es:
	
Pipeline
Tasks
Demo
StableDiffusionPix2PixZeroPipeline
Text-Based Image Editing
🤗 Space

Usage example
	

Based on an image generated with the input prompt
	


	Copied
import requests
import torch

from diffusers import DDIMScheduler, StableDiffusionPix2PixZeroPipeline


def download(embedding_url, local_filepath):
    r = requests.get(embedding_url)
    with open(local_filepath, "wb") as f:
        f.write(r.content)


model_ckpt = "Comp