MelodyAI Backend
Create a Hugging Face Gradio Space, select ZeroGPU hardware, and upload app.py and requirements.txt.
The endpoint is /generate_music.
The frontend in ../frontend/index.html connects to this Space using the official Gradio JavaScript client.
IMPORTANT: MusicGen model weights are CC-BY-NC 4.0. This is a prototype/non-commercial integration unless you have separate rights for commercial use.