Spaces:
Running on Zero
Running on Zero
Declare the model's own sample rate and channel count
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from functools import partial
|
|
| 11 |
from pyharp.core import ModelCard, build_endpoint
|
| 12 |
from pyharp.media.audio import load_audio, save_audio
|
| 13 |
from pyharp.labels import LabelList
|
| 14 |
-
from pyharp.tags import Subcategory
|
| 15 |
|
| 16 |
# Global Config
|
| 17 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
@@ -184,7 +184,7 @@ model_card = ModelCard(
|
|
| 184 |
)
|
| 185 |
),
|
| 186 |
author="Patrick O'Reilly, Julia Barnett, Hugo Flores García, Annie Chu, Nathan Pruyne, Prem Seetharaman, Bryan Pardo",
|
| 187 |
-
tags=[Subcategory.HOLISTIC, 'tria', 'rhythm-generation', 'pyharp'],
|
| 188 |
)
|
| 189 |
|
| 190 |
|
|
|
|
| 11 |
from pyharp.core import ModelCard, build_endpoint
|
| 12 |
from pyharp.media.audio import load_audio, save_audio
|
| 13 |
from pyharp.labels import LabelList
|
| 14 |
+
from pyharp.tags import Subcategory, SampleRate
|
| 15 |
|
| 16 |
# Global Config
|
| 17 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 184 |
)
|
| 185 |
),
|
| 186 |
author="Patrick O'Reilly, Julia Barnett, Hugo Flores García, Annie Chu, Nathan Pruyne, Prem Seetharaman, Bryan Pardo",
|
| 187 |
+
tags=[Subcategory.HOLISTIC, SampleRate(44100), 'tria', 'rhythm-generation', 'pyharp'],
|
| 188 |
)
|
| 189 |
|
| 190 |
|