Spaces:
Runtime error
Runtime error
| name: audiocraft_build | |
| description: 'Build audiocraft env.' | |
| runs: | |
| using: "composite" | |
| steps: | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8 | |
| - uses: actions/cache@v2 | |
| id: cache | |
| with: | |
| path: env | |
| key: audiocraft_env-${{ hashFiles('**/requirements.txt') }} | |
| - if: ${{ steps.cache.outputs.cache-hit != 'true' }} | |
| name: Install dependencies | |
| shell: bash | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libsndfile1-dev ffmpeg | |
| python3 -m venv env | |
| . env/bin/activate | |
| python -m pip install --upgrade pip | |
| pip install torch torchvision torchaudio | |
| pip install xformers | |
| pip install -e '.[dev]' | |
| - name: System Dependencies | |
| shell: bash | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libsndfile1-dev ffmpeg | |