Spaces:
Runtime error
Runtime error
mrolando
commited on
Commit
·
4e43ace
1
Parent(s):
fd7a397
second
Browse files
app.py
CHANGED
@@ -9,9 +9,10 @@ if torch.cuda.is_available():
|
|
9 |
else:
|
10 |
device = "cpu"
|
11 |
torch_dtype = torch.float32
|
|
|
12 |
repo_id = "cvssp/audioldm-m-full"
|
13 |
pipe = AudioLDMPipeline.from_pretrained(repo_id, torch_dtype=torch.float16)
|
14 |
-
|
15 |
|
16 |
prompt = "Techno music with a strong, upbeat tempo and high melodic riffs"
|
17 |
|
|
|
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"
|
18 |
|