Spaces:
Sleeping
Sleeping
Update app.py
Browse files1 unmodified line234556788910101112131 unmodified linefrom diffusers import StableDiffusionPipelineimport streamlit as st
# Load the Stable Diffusion pipeline# Load the Stable Diffusion pipeline on CPUpipe = StableDiffusionPipeline.from_pretrained( "dreamlike-art/dreamlike-photoreal-2.0", torch_dtype=torch.float16, torch_dtype=torch.float32, # Use float32 for CPU use_safetensors=True).to("cuda")).to("cpu") # Change to CPU
# Define the prompt and set a random seedprompt = "cinematic photo of Godzilla eating sushi with a cat in an izakaya, 35mm photograph, film, professional, 4k, highly detailed"app.py+3-3