owlninjam commited on
Commit
afedf95
·
verified ·
1 Parent(s): 0fe4bd2

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -4
  2. 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==1.25.2
13
 
14
- # Install chatterbox-tts (now pkuseg can build because numpy is available)
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
- numpy
2
- chatterbox-tts
3
- torch
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.