
1from diffusers import DiffusionPipeline
2import torch
3
4pipeline = DiffusionPipeline.from_pretrained("eazzy/sd-hubble-model", torch_dtype=torch.float16)
5prompt = "Hubble image of a colorful ringed nebula: A new vibrant ring-shaped nebula was imaged by the NASA/ESA Hubble Space Telescope."
6image = pipeline(prompt).images[0]
7image.save("my_image.png")# TODO: add an example code snippet for running this diffusion pipeline