AJ50 commited on
Commit
dbdffc6
·
1 Parent(s): 7e7c741

Add BLAS/LAPACK libraries and upgrade scipy to 1.13.1 with wheel priority

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -3
  2. backend/requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,11 +1,12 @@
1
  FROM python:3.10-slim
2
 
3
- # Install system dependencies including build tools for webrtcvad
4
  RUN apt-get update && apt-get install -y \
5
  build-essential \
6
  libsndfile1 libsndfile1-dev \
7
  ffmpeg \
8
  git \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
@@ -13,8 +14,9 @@ WORKDIR /app
13
  # Copy entire project
14
  COPY . .
15
 
16
- # Install Python dependencies
17
- RUN pip install --no-cache-dir -r backend/requirements.txt
 
18
 
19
  # Note: Models will be downloaded on first request
20
  # Skipping download_models.py to avoid build timeout on HF Spaces
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies including build tools and BLAS/LAPACK for scipy
4
  RUN apt-get update && apt-get install -y \
5
  build-essential \
6
  libsndfile1 libsndfile1-dev \
7
  ffmpeg \
8
  git \
9
+ libblas-dev liblapack-dev gfortran \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  WORKDIR /app
 
14
  # Copy entire project
15
  COPY . .
16
 
17
+ # Install Python dependencies with pre-built wheels priority
18
+ RUN pip install --no-cache-dir --only-binary :all: -r backend/requirements.txt || \
19
+ pip install --no-cache-dir -r backend/requirements.txt
20
 
21
  # Note: Models will be downloaded on first request
22
  # Skipping download_models.py to avoid build timeout on HF Spaces
backend/requirements.txt CHANGED
@@ -7,7 +7,7 @@ soundfile==0.12.1
7
  numpy==1.24.3
8
  huggingface_hub==0.19.4
9
  matplotlib==3.7.2
10
- scipy==1.11.2
11
  scikit-learn==1.3.0
12
  unidecode==1.3.0
13
  inflect==7.0.0
 
7
  numpy==1.24.3
8
  huggingface_hub==0.19.4
9
  matplotlib==3.7.2
10
+ scipy==1.13.1
11
  scikit-learn==1.3.0
12
  unidecode==1.3.0
13
  inflect==7.0.0