Spaces:
Sleeping
Sleeping
axeronis commited on
Commit ·
ef10fdb
1
Parent(s): da88c4c
fix(chatterbox): upgrade to PyTorch 2.4.0 (NumPy 2 compatible)
Browse files
chatterbox-service/Dockerfile
CHANGED
|
@@ -10,11 +10,11 @@ RUN apt-get update && apt-get install -y \
|
|
| 10 |
libsndfile1 \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
-
# Install CPU-only PyTorch
|
| 14 |
RUN pip install --no-cache-dir \
|
| 15 |
-
torch==2.
|
| 16 |
-
torchaudio==2.
|
| 17 |
-
-
|
| 18 |
|
| 19 |
# Install other dependencies
|
| 20 |
RUN pip install --no-cache-dir \
|
|
@@ -28,9 +28,6 @@ RUN pip install --no-cache-dir \
|
|
| 28 |
# Install chatterbox with ALL dependencies
|
| 29 |
RUN pip install --no-cache-dir chatterbox-tts
|
| 30 |
|
| 31 |
-
# IMPORTANT: Force numpy<2 AFTER chatterbox (torch 2.1 needs numpy<2)
|
| 32 |
-
RUN pip install --no-cache-dir "numpy<2" --force-reinstall
|
| 33 |
-
|
| 34 |
# Copy application
|
| 35 |
COPY . .
|
| 36 |
|
|
@@ -38,7 +35,7 @@ COPY . .
|
|
| 38 |
EXPOSE 8001
|
| 39 |
|
| 40 |
# Health check
|
| 41 |
-
HEALTHCHECK --interval=30s --timeout=10s --start-period=
|
| 42 |
CMD curl -f http://localhost:8001/health || exit 1
|
| 43 |
|
| 44 |
# Run server
|
|
|
|
| 10 |
libsndfile1 \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
+
# Install CPU-only PyTorch 2.4 (compatible with NumPy 2.x)
|
| 14 |
RUN pip install --no-cache-dir \
|
| 15 |
+
torch==2.4.0 \
|
| 16 |
+
torchaudio==2.4.0 \
|
| 17 |
+
--index-url https://download.pytorch.org/whl/cpu
|
| 18 |
|
| 19 |
# Install other dependencies
|
| 20 |
RUN pip install --no-cache-dir \
|
|
|
|
| 28 |
# Install chatterbox with ALL dependencies
|
| 29 |
RUN pip install --no-cache-dir chatterbox-tts
|
| 30 |
|
|
|
|
|
|
|
|
|
|
| 31 |
# Copy application
|
| 32 |
COPY . .
|
| 33 |
|
|
|
|
| 35 |
EXPOSE 8001
|
| 36 |
|
| 37 |
# Health check
|
| 38 |
+
HEALTHCHECK --interval=30s --timeout=10s --start-period=180s \
|
| 39 |
CMD curl -f http://localhost:8001/health || exit 1
|
| 40 |
|
| 41 |
# Run server
|