mrolando commited on
Commit
b2d4aa4
1 Parent(s): 4e43ace

changed torchdtype

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,9 +9,9 @@ if torch.cuda.is_available():
9
  else:
10
  device = "cpu"
11
  torch_dtype = torch.float32
12
-
13
  repo_id = "cvssp/audioldm-m-full"
14
- pipe = AudioLDMPipeline.from_pretrained(repo_id, torch_dtype=torch.float16)
15
  pipe.unet = torch.compile(pipe.unet)
16
 
17
  prompt = "Techno music with a strong, upbeat tempo and high melodic riffs"
 
9
  else:
10
  device = "cpu"
11
  torch_dtype = torch.float32
12
+ print(device)
13
  repo_id = "cvssp/audioldm-m-full"
14
+ pipe = AudioLDMPipeline.from_pretrained(repo_id, torch_dtype=torch_dtype)
15
  pipe.unet = torch.compile(pipe.unet)
16
 
17
  prompt = "Techno music with a strong, upbeat tempo and high melodic riffs"