Spaces:
Sleeping
Sleeping
import spaces | |
from diffusers import DiffusionPipeline | |
model_id = "google/gemma-3-27b-it" | |
pipe = DiffusionPipeline.from_pretrained( | |
model_id, | |
device_map="auto" | |
) | |
pipe.to('cuda') | |
def generate(prompt): | |
return pipe(prompt).images | |
gr.Interface( | |
fn=generate, | |
inputs=gr.Text(), | |
outputs=gr.Gallery(), | |
).launch() |