demo / app.py
we2app's picture
Create app.py
dd6608d verified
Raw
History Blame Contribute Delete
276 Bytes
import torch
from diffusers import DiffusionPipeline
pipe = DiffusionPipeline.from_pretrained("wangkanai/sdxl-fp8", torch_dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]