Spaces:
Running

axeronis commited on
Commit
da88c4c
·
1 Parent(s): 1b365d0

fix(chatterbox): force numpy<2 AFTER chatterbox install

Browse files
Files changed (1) hide show
  1. chatterbox-service/Dockerfile +3 -3
chatterbox-service/Dockerfile CHANGED
@@ -10,9 +10,6 @@ RUN apt-get update && apt-get install -y \
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 \
@@ -31,6 +28,9 @@ RUN pip install --no-cache-dir \
31
  # Install chatterbox with ALL dependencies
32
  RUN pip install --no-cache-dir chatterbox-tts
33
 
 
 
 
34
  # Copy application
35
  COPY . .
36
 
 
10
  libsndfile1 \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
 
 
13
  # Install CPU-only PyTorch first (smaller)
14
  RUN pip install --no-cache-dir \
15
  torch==2.1.0+cpu \
 
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