Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
|
|
6 |
from diffusers import DiffusionPipeline
|
7 |
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
-
|
10 |
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9", torch_dtype=torch.float16, use_safetensors=True, variant="fp16", use_auth_token=True)
|
11 |
pipe = pipe.to(device)
|
12 |
pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|
|
|
6 |
from diffusers import DiffusionPipeline
|
7 |
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
+
access_token = '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'
|
10 |
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9", torch_dtype=torch.float16, use_safetensors=True, variant="fp16", use_auth_token=True)
|
11 |
pipe = pipe.to(device)
|
12 |
pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
|