Spaces:
Running
Running
axeronis commited on
Commit ·
1b365d0
1
Parent(s): 616bb7f
fix(chatterbox): pin numpy<2, install chatterbox with all deps
Browse files
chatterbox-service/Dockerfile
CHANGED
|
@@ -7,8 +7,12 @@ RUN apt-get update && apt-get install -y \
|
|
| 7 |
ffmpeg \
|
| 8 |
git \
|
| 9 |
curl \
|
|
|
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Install CPU-only PyTorch first (smaller)
|
| 13 |
RUN pip install --no-cache-dir \
|
| 14 |
torch==2.1.0+cpu \
|
|
@@ -21,12 +25,11 @@ RUN pip install --no-cache-dir \
|
|
| 21 |
uvicorn \
|
| 22 |
pydub \
|
| 23 |
python-multipart \
|
| 24 |
-
|
| 25 |
-
soundfile
|
| 26 |
-
httpx
|
| 27 |
|
| 28 |
-
# Install chatterbox
|
| 29 |
-
RUN pip install --no-cache-dir
|
| 30 |
|
| 31 |
# Copy application
|
| 32 |
COPY . .
|
|
@@ -40,3 +43,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=120s \
|
|
| 40 |
|
| 41 |
# Run server
|
| 42 |
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8001"]
|
|
|
|
|
|
| 7 |
ffmpeg \
|
| 8 |
git \
|
| 9 |
curl \
|
| 10 |
+
libsndfile1 \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
+
# Pin numpy for torch compatibility
|
| 14 |
+
RUN pip install --no-cache-dir "numpy<2"
|
| 15 |
+
|
| 16 |
# Install CPU-only PyTorch first (smaller)
|
| 17 |
RUN pip install --no-cache-dir \
|
| 18 |
torch==2.1.0+cpu \
|
|
|
|
| 25 |
uvicorn \
|
| 26 |
pydub \
|
| 27 |
python-multipart \
|
| 28 |
+
httpx \
|
| 29 |
+
soundfile
|
|
|
|
| 30 |
|
| 31 |
+
# Install chatterbox with ALL dependencies
|
| 32 |
+
RUN pip install --no-cache-dir chatterbox-tts
|
| 33 |
|
| 34 |
# Copy application
|
| 35 |
COPY . .
|
|
|
|
| 43 |
|
| 44 |
# Run server
|
| 45 |
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8001"]
|
| 46 |
+
|