Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -10,8 +10,6 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
10 |
checkpoint = "Deci/DeciDiffusion-v2-0"
|
11 |
auth_token = os.environ.get("HF_ACCESS_TOKEN", False)
|
12 |
|
13 |
-
print(auth_token)
|
14 |
-
|
15 |
pipe = StableDiffusionPipeline.from_pretrained(checkpoint, custom_pipeline=checkpoint, torch_dtype=torch.float32, use_auth_token=auth_token)
|
16 |
pipe.unet = pipe.unet.from_pretrained(checkpoint, subfolder='flexible_unet', torch_dtype=torch.float32, use_auth_token=auth_token)
|
17 |
pipe = pipe.to(device)
|
|
|
10 |
checkpoint = "Deci/DeciDiffusion-v2-0"
|
11 |
auth_token = os.environ.get("HF_ACCESS_TOKEN", False)
|
12 |
|
|
|
|
|
13 |
pipe = StableDiffusionPipeline.from_pretrained(checkpoint, custom_pipeline=checkpoint, torch_dtype=torch.float32, use_auth_token=auth_token)
|
14 |
pipe.unet = pipe.unet.from_pretrained(checkpoint, subfolder='flexible_unet', torch_dtype=torch.float32, use_auth_token=auth_token)
|
15 |
pipe = pipe.to(device)
|