Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -17,10 +17,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 17 |
# Copy requirements FIRST for better caching
|
| 18 |
COPY requirements.txt .
|
| 19 |
|
| 20 |
-
# Install PyTorch
|
| 21 |
RUN pip install --no-cache-dir \
|
| 22 |
-
torch==2.8.0
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# Clone neutts-air
|
| 26 |
RUN git clone --depth 1 https://github.com/neuphonic/neutts-air.git
|
|
|
|
| 17 |
# Copy requirements FIRST for better caching
|
| 18 |
COPY requirements.txt .
|
| 19 |
|
| 20 |
+
# Install CPU PyTorch FIRST using the correct method
|
| 21 |
RUN pip install --no-cache-dir \
|
| 22 |
+
torch==2.8.0+cpu \
|
| 23 |
+
torchaudio==2.8.0+cpu \
|
| 24 |
+
--index-url https://download.pytorch.org/whl/cpu
|
| 25 |
+
|
| 26 |
+
# Now install the rest of the dependencies
|
| 27 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 28 |
|
| 29 |
# Clone neutts-air
|
| 30 |
RUN git clone --depth 1 https://github.com/neuphonic/neutts-air.git
|