Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -19,11 +19,16 @@ WORKDIR /app
|
|
| 19 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
| 20 |
RUN pip install --no-cache-dir torch torchvision torchaudio
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
COPY requirements.txt .
|
| 23 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
|
| 25 |
RUN python -m spacy download en_core_web_sm
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
|
| 28 |
COPY . .
|
| 29 |
|
|
|
|
| 19 |
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
| 20 |
RUN pip install --no-cache-dir torch torchvision torchaudio
|
| 21 |
|
| 22 |
+
# Install the correct binary version of av before audiocraft
|
| 23 |
+
RUN pip install --no-cache-dir av
|
| 24 |
+
|
| 25 |
COPY requirements.txt .
|
| 26 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
RUN python -m spacy download en_core_web_sm
|
| 29 |
+
|
| 30 |
+
# Install audiocraft WITHOUT dependencies to avoid the 'av' build error
|
| 31 |
+
RUN pip install --no-cache-dir --no-deps git+https://github.com/facebookresearch/audiocraft.git
|
| 32 |
|
| 33 |
COPY . .
|
| 34 |
|