With every little thing arrange: Python, Conda, Audiocraft, and dependencies, you’re able to run the MusicGen demo app offered by Fb’s Audiocraft.
python -m demos.musicgen_app --share
What This Does:
- Launches the Gradio-based net app for MusicGen.
- Opens an area net interface (normally on http://localhost:7860) the place you possibly can: Enter prompts, generate music, and play or obtain outputs.
For those who see a TypeError, crash, or clean UI:
- Double-check that Gradio is downgraded to three.44.4.
- Be sure you’re contained in the audiocraft Conda setting.
- Test the terminal for traceback messages for clues.
Troubleshooting: How you can Cease the App If It Will get Caught:
Generally, Audiocraft’s MusicGen app could freeze, dangle, or not reply within the terminal, particularly if the Gradio server doesn’t shut down cleanly. If that occurs, you’ll have to manually give up the Python course of out of your WSL terminal.
- Test for working Python processes:
ps aux | grep python
You’ll see output like:
consumer 2520 55.4 32.4 55092284 5264504 pts/6 Sl+ 23:11 11:21 python -m demos.musicgen_app --share
consumer 8231 0.0 0.0 4092 1988 pts/7 S+ 23:31 0:00 grep --color=auto python
2. Establish the PID of the working demo course of (on this instance: 2520)
3. Kill it with:
sudo kill -9 2520
This can forcefully cease the caught app so you possibly can restart or shut down cleanly. Tip: You may also use htop (put in earlier) for an interactive method to discover and kill processes.