Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- Dockerfile +3 -4
- requirements.txt +3 -8
Dockerfile
CHANGED
|
@@ -8,11 +8,10 @@ RUN apt-get update && \
|
|
| 8 |
build-essential \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
-
# Install numpy FIRST (pkuseg needs it at build time)
|
| 12 |
-
RUN pip install --no-cache-dir numpy=
|
| 13 |
|
| 14 |
-
# Install chatterbox-tts
|
| 15 |
-
# Using --no-build-isolation so pkuseg's setup.py can see the installed numpy
|
| 16 |
RUN pip install --no-cache-dir --no-build-isolation chatterbox-tts
|
| 17 |
|
| 18 |
# Install remaining dependencies
|
|
|
|
| 8 |
build-essential \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
+
# Install numpy FIRST (pkuseg needs it at build time in setup.py)
|
| 12 |
+
RUN pip install --no-cache-dir "numpy>=1.24,<2"
|
| 13 |
|
| 14 |
+
# Install chatterbox-tts with --no-build-isolation so pkuseg sees numpy
|
|
|
|
| 15 |
RUN pip install --no-cache-dir --no-build-isolation chatterbox-tts
|
| 16 |
|
| 17 |
# Install remaining dependencies
|
requirements.txt
CHANGED
|
@@ -1,8 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
torchaudio
|
| 5 |
-
soundfile
|
| 6 |
-
pydub
|
| 7 |
-
fastapi
|
| 8 |
-
uvicorn
|
|
|
|
| 1 |
+
# Requirements are handled in the Dockerfile (multi-stage install needed for pkuseg)
|
| 2 |
+
# This file is intentionally left with no packages to avoid HF Spaces
|
| 3 |
+
# pip install conflicts with the Dockerfile build steps.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|