Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from PIL import Image
|
|
4 |
import torch
|
5 |
|
6 |
# Load the Stable Diffusion model
|
7 |
-
model = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.
|
8 |
model = model.to("cuda" if torch.cuda.is_available() else "cpu")
|
9 |
|
10 |
def generate_image(prompt):
|
|
|
4 |
import torch
|
5 |
|
6 |
# Load the Stable Diffusion model
|
7 |
+
model = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", torch_dtype=torch.float32)
|
8 |
model = model.to("cuda" if torch.cuda.is_available() else "cpu")
|
9 |
|
10 |
def generate_image(prompt):
|