yooi commited on
Commit
598184d
·
verified ·
1 Parent(s): 7e1e5d3

Upload poetic/providers/modal_gpu.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. poetic/providers/modal_gpu.py +4 -4
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
- # ACE-Step instrumental mode: the special [instrumental] lyrics token
143
- # tells it to produce backing music with no vocals.
144
  data = _post_bytes(
145
- "MODAL_SING_URL",
146
- {"tags": tags, "lyrics": "[instrumental]", "duration": duration},
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)