Spaces:
Sleeping
Sleeping
Update app.py
Browse files1 unmodified line23456789101112131 unmodified linefrom diffusers import StableDiffusionPipelineimport streamlit as st# Load the Stable Diffusion pipelinepipe = StableDiffusionPipeline.from_pretrained("dreamlike-art/dreamlike-photoreal-2.0",torch_dtype=torch.float16,use_safetensors=True).to("cuda")# 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"1 unmodified line23456789101112131 unmodified linefrom diffusers import StableDiffusionPipelineimport streamlit as st# Load the Stable Diffusion pipeline on CPUpipe = StableDiffusionPipeline.from_pretrained("dreamlike-art/dreamlike-photoreal-2.0",torch_dtype=torch.float32, # Use float32 for CPUuse_safetensors=True).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