Update README.md
Browse files8 unmodified lines910111213144 unmodified lines192021222324258 unmodified lines---a prompt generator for the [ACE-Step](https://huggingface.co/ACE-Step/ACE-Step-v1-3.5B) music generation model, fintuned from the MuFun model proposed in [Advancing the Foundation Model for Music Understanding](https://arxiv.org/abs/2508.01178)## Usagesome audio processing packages like mutagen, torchaudio are needed to be installed```python4 unmodified linesmodel = AutoModelForCausalLM.from_pretrained(hf_path, trust_remote_code=True, torch_dtype="bfloat16")model.to(device)aud="/path/to/your/song.mp3.wav"inp='<audio>\nDeconstruct this song, listing its tags and lyrics. Directly output a JSON object with prompt and lyrics fields, without any additional explanations or text.'res=model.chat(prompt=inp, audio_files=aud, segs=None, tokenizer=tokenizer)print(res)8 unmodified lines9101112131415164 unmodified lines212223242526278 unmodified lines---a prompt generator for the [ACE-Step](https://huggingface.co/ACE-Step/ACE-Step-v1-3.5B) music generation model, fintuned from the MuFun model proposed in [Advancing the Foundation Model for Music Understanding](https://arxiv.org/abs/2508.01178)train code: https://github.com/laitselec/MuFun## Usagesome audio processing packages like mutagen, torchaudio are needed to be installed```python4 unmodified linesmodel = AutoModelForCausalLM.from_pretrained(hf_path, trust_remote_code=True, torch_dtype="bfloat16")model.to(device)aud="/path/to/your/song.wav"inp='<audio>\nDeconstruct this song, listing its tags and lyrics. Directly output a JSON object with prompt and lyrics fields, without any additional explanations or text.'res=model.chat(prompt=inp, audio_files=aud, segs=None, tokenizer=tokenizer)print(res)
README.md+3-1