Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
9 |
|
10 |
if torch.cuda.is_available():
|
11 |
torch.cuda.max_memory_allocated(device=device)
|
12 |
-
pipe = DiffusionPipeline.from_pretrained("sd-community/sdxl-flash", torch_dtype=torch.float16,
|
13 |
pipe.enable_xformers_memory_efficient_attention()
|
14 |
pipe = pipe.to(device)
|
15 |
else:
|
|
|
9 |
|
10 |
if torch.cuda.is_available():
|
11 |
torch.cuda.max_memory_allocated(device=device)
|
12 |
+
pipe = DiffusionPipeline.from_pretrained("sd-community/sdxl-flash", torch_dtype=torch.float16, use_safetensors=True)
|
13 |
pipe.enable_xformers_memory_efficient_attention()
|
14 |
pipe = pipe.to(device)
|
15 |
else:
|