asahi417 commited on
Commit
55e4f3c
1 Parent(s): 69e5b0c

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ import spaces
8
 
9
  repo = "stabilityai/stable-diffusion-3-medium-diffusers"
10
  if torch.cuda.is_available():
11
- pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16).to(device)
12
  else:
13
  pipe = StableDiffusion3Pipeline.from_pretrained(repo)
14
 
 
8
 
9
  repo = "stabilityai/stable-diffusion-3-medium-diffusers"
10
  if torch.cuda.is_available():
11
+ pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16).to("cuda")
12
  else:
13
  pipe = StableDiffusion3Pipeline.from_pretrained(repo)
14