Spaces:
Runtime error
Runtime error
Download build.sh from nifty-coder/stemsplit-backend: direct link, hf CLI and curl.
- Browser
- Download file 861 Bytes
-
https://huggingface.co/spaces/nifty-coder/stemsplit-backend/resolve/main/build.sh
- Command line
-
hf download hf://spaces/nifty-coder/stemsplit-backend/build.sh
-
curl -L -o build.sh https://huggingface.co/spaces/nifty-coder/stemsplit-backend/resolve/main/build.sh
861 Bytes
| # Install dependencies | |
| # 1. Update pip | |
| pip install --upgrade pip | |
| # 2. Install base requirements | |
| pip install -r requirements.txt | |
| # 3. Install demucs dependencies separately to manage version conflicts | |
| echo "Installing demucs dependencies..." | |
| pip install dora-search einops "julius>=0.2.3" openunmix tqdm pyyaml "lameenc>=1.2" demucs | |
| # 4. Download static ffmpeg (for Render/Linux) | |
| if [ ! -f "ffmpeg" ] && [ "$(uname)" == "Linux" ]; then | |
| echo "Downloading static ffmpeg..." | |
| wget -q https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz | |
| tar -xf ffmpeg-release-amd64-static.tar.xz | |
| # Move binaries to root | |
| find . -name "ffmpeg" -type f -exec mv {} . \; | |
| find . -name "ffprobe" -type f -exec mv {} . \; | |
| chmod +x ffmpeg ffprobe | |
| rm -rf ffmpeg-*-amd64-static* | |
| fi | |
| echo "Build complete (Pure Python)!" | |