Spaces:
Running
on
Zero
Running
on
Zero
CharlieAmalet
commited on
Commit
•
e47304c
1
Parent(s):
8b81391
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,10 @@ css = """
|
|
15 |
}
|
16 |
"""
|
17 |
|
18 |
-
|
|
|
19 |
|
|
|
20 |
model_id = "Onodofthenorth/SD_PixelArt_SpriteSheet_Generator"
|
21 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, cache_dir="cache", torch_dtype=torch.float16)
|
22 |
pipe.to("cuda")
|
|
|
15 |
}
|
16 |
"""
|
17 |
|
18 |
+
import os
|
19 |
+
os.makedirs("cache", exist_ok=True)
|
20 |
|
21 |
+
DEVICE = 'cuda'
|
22 |
model_id = "Onodofthenorth/SD_PixelArt_SpriteSheet_Generator"
|
23 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, cache_dir="cache", torch_dtype=torch.float16)
|
24 |
pipe.to("cuda")
|