CharlieAmalet commited on
Commit
e47304c
1 Parent(s): 8b81391

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -15,8 +15,10 @@ css = """
15
  }
16
  """
17
 
18
- DEVICE = 'cuda'
 
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")