Spaces:
Runtime error
Runtime error
File size: 364 Bytes
25b7f0b a710f56 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import gradio as gr
gr.Interface.load("models/andite/pastel-mix").launch()
from diffusers import StableDiffusionPipeline
import torch
model_id = "andite/pastel-mix"
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe = pipe.to("cuda")
prompt = "hatsune_miku"
image = pipe(prompt).images[0]
image.save("./hatsune_miku.png") |