Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,10 @@ from diffusers import StableDiffusionXLPipeline, UNet2DConditionModel, EulerDisc
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
from safetensors.torch import load_file
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
|
| 11 |
base = "stabilityai/stable-diffusion-xl-base-1.0"
|
| 12 |
repo = "ByteDance/SDXL-Lightning"
|
|
|
|
| 5 |
from huggingface_hub import hf_hub_download
|
| 6 |
from safetensors.torch import load_file
|
| 7 |
|
| 8 |
+
assert torch.cuda.is_available()
|
| 9 |
+
|
| 10 |
+
device = "cuda"
|
| 11 |
+
dtype = torch.float16
|
| 12 |
|
| 13 |
base = "stabilityai/stable-diffusion-xl-base-1.0"
|
| 14 |
repo = "ByteDance/SDXL-Lightning"
|