Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
7 |
|
8 |
# Load Stable Diffusion v1.5 from Hugging Face
|
9 |
pipe = StableDiffusionPipeline.from_pretrained(
|
10 |
-
"
|
11 |
torch_dtype=torch.float16 if device == "cuda" else torch.float32,
|
12 |
revision="fp16" if device == "cuda" else None,
|
13 |
use_safetensors=True
|
|
|
7 |
|
8 |
# Load Stable Diffusion v1.5 from Hugging Face
|
9 |
pipe = StableDiffusionPipeline.from_pretrained(
|
10 |
+
"stable-diffusion-v1-5/stable-diffusion-v1-5",
|
11 |
torch_dtype=torch.float16 if device == "cuda" else torch.float32,
|
12 |
revision="fp16" if device == "cuda" else None,
|
13 |
use_safetensors=True
|