Spaces:
Runtime error
Runtime error
Commit
·
b184fee
1
Parent(s):
35798eb
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,9 @@ pipe = AudioLDMPipeline.from_pretrained(repo_id, torch_dtype=torch_dtype).to(dev
|
|
17 |
pipe.unet = torch.compile(pipe.unet)
|
18 |
|
19 |
# CLAP model (only required for automatic scoring)
|
20 |
-
|
|
|
|
|
21 |
processor = AutoProcessor.from_pretrained("sanchit-gandhi/clap-htsat-unfused-m-full")
|
22 |
|
23 |
generator = torch.Generator(device)
|
|
|
17 |
pipe.unet = torch.compile(pipe.unet)
|
18 |
|
19 |
# CLAP model (only required for automatic scoring)
|
20 |
+
|
21 |
+
clap_model = ClapModel.from_pretrained("sanchit-gandhi/clap-htsat-unfused-m-full").to("cuda")
|
22 |
+
|
23 |
processor = AutoProcessor.from_pretrained("sanchit-gandhi/clap-htsat-unfused-m-full")
|
24 |
|
25 |
generator = torch.Generator(device)
|