Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import torch
|
|
| 6 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 7 |
|
| 8 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 9 |
-
"runwayml/stable-diffusion-v1-5",
|
| 10 |
torch_dtype=torch.float16 if device=="cuda" else torch.float32
|
| 11 |
)
|
| 12 |
pipe = pipe.to(device)
|
|
|
|
| 6 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 7 |
|
| 8 |
pipe = StableDiffusionPipeline.from_pretrained(
|
| 9 |
+
"runwayml/stable-diffusion-v1-5",
|
| 10 |
torch_dtype=torch.float16 if device=="cuda" else torch.float32
|
| 11 |
)
|
| 12 |
pipe = pipe.to(device)
|