spsancti commited on
Commit
efb1672
1 Parent(s): 5ceb3b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -8,10 +8,12 @@ import os
8
  # Load pipeline once
9
  device = "cuda" if torch.cuda.is_available() else "cpu"
10
  checkpoint = "Deci/DeciDiffusion-v2-0"
11
- auth_token = os.environ.get("HF_ACCESS_TOKEN") or True
 
 
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)
15
  pipe = pipe.to(device)
16
 
17
 
 
8
  # Load pipeline once
9
  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)
18
 
19