Spaces:
Runtime error
Runtime error
Update app.py
Browse files3 unmodified lines456789103 unmodified linesimport torch# Load the Stable Diffusion modelmodel = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float16)model = model.to("cuda" if torch.cuda.is_available() else "cpu")def generate_image(prompt):3 unmodified lines456789103 unmodified linesimport torch# Load the Stable Diffusion modelmodel = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float32)model = model.to("cuda" if torch.cuda.is_available() else "cpu")def generate_image(prompt):
app.py+1-1