Spaces:
Runtime error
Runtime error
set -e | |
echo "▶ reinstall CPU‑only PyTorch stack" | |
pip uninstall -y torch torchaudio torchvision xformers || true | |
pip install --no-cache-dir \ | |
torch==2.1.0+cpu torchaudio==2.1.0+cpu \ | |
--extra-index-url https://download.pytorch.org/whl/cpu | |
echo "▶ install audiocraft without xformers" | |
pip install --no-cache-dir --use-pep517 --no-deps \ | |
git+https://github.com/facebookresearch/audiocraft@main | |
echo "▶ install audiocraft runtime deps" | |
pip install --no-cache-dir encodec spacy huggingface_hub soundfile tqdm | |
echo "✓ postInstall complete" | |
pip install --no-cache-dir librosa | |