Spaces:
Running
Running
Upload poetic/providers/modal_gpu.py with huggingface_hub
Browse files
poetic/providers/modal_gpu.py
CHANGED
|
@@ -139,11 +139,11 @@ class Reciter:
|
|
| 139 |
return out.name
|
| 140 |
|
| 141 |
def instrumental(self, tags: str, duration: float = 24.0) -> str:
|
| 142 |
-
#
|
| 143 |
-
#
|
| 144 |
data = _post_bytes(
|
| 145 |
-
"
|
| 146 |
-
{"tags": tags, "
|
| 147 |
expect="audio/",
|
| 148 |
)
|
| 149 |
out = tempfile.NamedTemporaryFile(suffix=".wav", delete=False)
|
|
|
|
| 139 |
return out.name
|
| 140 |
|
| 141 |
def instrumental(self, tags: str, duration: float = 24.0) -> str:
|
| 142 |
+
# MusicGen: purpose-built text→instrumental, reliably honours "no drums /
|
| 143 |
+
# solo guqin" (ACE-Step, a song model, kept sneaking in a rock beat).
|
| 144 |
data = _post_bytes(
|
| 145 |
+
"MODAL_MUSIC_URL",
|
| 146 |
+
{"tags": tags, "duration": duration},
|
| 147 |
expect="audio/",
|
| 148 |
)
|
| 149 |
out = tempfile.NamedTemporaryFile(suffix=".wav", delete=False)
|