Manjushri commited on
Commit
a9ee2d5
·
1 Parent(s): a991e52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,9 +8,9 @@ from huggingface_hub import login
8
  import os
9
 
10
  os.environ.get('HF_KEY')
11
-
12
  device = "cuda" if torch.cuda.is_available() else "cpu"
13
- pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9", token='HF_KEY')
14
  pipe = pipe.to(device)
15
  pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
16
 
 
8
  import os
9
 
10
  os.environ.get('HF_KEY')
11
+ login(token='HF_KEY')
12
  device = "cuda" if torch.cuda.is_available() else "cpu"
13
+ pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9")
14
  pipe = pipe.to(device)
15
  pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
16