Spaces:
Running
Running
Commit
•
ffa1ef4
1
Parent(s):
a71ce00
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,8 @@ PREVIEW_IMAGES = True
|
|
29 |
dtype = torch.bfloat16
|
30 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
31 |
if torch.cuda.is_available():
|
32 |
-
prior_pipeline = StableCascadePriorPipeline.from_pretrained("
|
33 |
-
decoder_pipeline = StableCascadeDecoderPipeline.from_pretrained("
|
34 |
|
35 |
if ENABLE_CPU_OFFLOAD:
|
36 |
prior_pipeline.enable_model_cpu_offload()
|
|
|
29 |
dtype = torch.bfloat16
|
30 |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
31 |
if torch.cuda.is_available():
|
32 |
+
prior_pipeline = StableCascadePriorPipeline.from_pretrained("stabilityai/StableCascade-prior", torch_dtype=dtype).to(device)
|
33 |
+
decoder_pipeline = StableCascadeDecoderPipeline.from_pretrained("stabilityai/StableCascade", torch_dtype=dtype).to(device)
|
34 |
|
35 |
if ENABLE_CPU_OFFLOAD:
|
36 |
prior_pipeline.enable_model_cpu_offload()
|