Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 9 |
context = autocast if device == "cuda" else nullcontext
|
| 10 |
dtype = torch.float16 if device == "cuda" else torch.float32
|
| 11 |
|
| 12 |
-
pipe = StableDiffusionPipeline.from_pretrained("YaYaB/sd-magic-diffusers-test2", torch_dtype=dtype)
|
| 13 |
pipe = pipe.to(device)
|
| 14 |
|
| 15 |
|
|
|
|
| 9 |
context = autocast if device == "cuda" else nullcontext
|
| 10 |
dtype = torch.float16 if device == "cuda" else torch.float32
|
| 11 |
|
| 12 |
+
pipe = StableDiffusionPipeline.from_pretrained("YaYaB/sd-magic-diffusers-test2", revision="5ed9cff0a416a6346aa17aee0d5ed57dfd59b809", torch_dtype=dtype)
|
| 13 |
pipe = pipe.to(device)
|
| 14 |
|
| 15 |
|