Spaces:
Sleeping
Sleeping
debugging update: requirements and dockerfile
Browse files- Dockerfile +7 -3
- requirements.txt +5 -5
Dockerfile
CHANGED
|
@@ -7,13 +7,14 @@ ENV PYTHONUNBUFFERED=1
|
|
| 7 |
|
| 8 |
# Install system dependencies
|
| 9 |
# - ffmpeg: Required for Whisper audio processing
|
| 10 |
-
# - git: Required for installing some git-based pip packages
|
| 11 |
-
# - curl: Required
|
| 12 |
-
# -
|
| 13 |
RUN apt-get update && apt-get install -y \
|
| 14 |
ffmpeg \
|
| 15 |
git \
|
| 16 |
curl \
|
|
|
|
| 17 |
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
| 18 |
&& apt-get install -y nodejs \
|
| 19 |
&& rm -rf /var/lib/apt/lists/*
|
|
@@ -24,6 +25,9 @@ WORKDIR /app
|
|
| 24 |
# Copy requirements file first to leverage Docker cache
|
| 25 |
COPY requirements.txt .
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
# Install Python dependencies
|
| 28 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 29 |
|
|
|
|
| 7 |
|
| 8 |
# Install system dependencies
|
| 9 |
# - ffmpeg: Required for Whisper audio processing
|
| 10 |
+
# - git: Required for installing some git-based pip packages
|
| 11 |
+
# - curl/nodejs: Required for running MCP servers (like Notion) via npx
|
| 12 |
+
# - build-essential: Required for compiling Python C extensions (critical for ML/Audio libs)
|
| 13 |
RUN apt-get update && apt-get install -y \
|
| 14 |
ffmpeg \
|
| 15 |
git \
|
| 16 |
curl \
|
| 17 |
+
build-essential \
|
| 18 |
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
| 19 |
&& apt-get install -y nodejs \
|
| 20 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 25 |
# Copy requirements file first to leverage Docker cache
|
| 26 |
COPY requirements.txt .
|
| 27 |
|
| 28 |
+
# Upgrade pip to ensure the latest resolver handles complex dependencies
|
| 29 |
+
RUN pip install --upgrade pip
|
| 30 |
+
|
| 31 |
# Install Python dependencies
|
| 32 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 33 |
|
requirements.txt
CHANGED
|
@@ -24,11 +24,11 @@ pyannote.pipeline==3.0.1
|
|
| 24 |
pyannoteai-sdk==0.3.0
|
| 25 |
|
| 26 |
# PyTorch
|
| 27 |
-
torch
|
| 28 |
-
torchaudio
|
| 29 |
-
torch-audiomentations
|
| 30 |
-
torch_pitch_shift
|
| 31 |
-
torchmetrics
|
| 32 |
|
| 33 |
# Audio processing
|
| 34 |
soundfile>=0.12.0
|
|
|
|
| 24 |
pyannoteai-sdk==0.3.0
|
| 25 |
|
| 26 |
# PyTorch
|
| 27 |
+
torch==2.8.0
|
| 28 |
+
torchaudio==2.8.0
|
| 29 |
+
torch-audiomentations==0.12.0
|
| 30 |
+
torch_pitch_shift==1.2.5
|
| 31 |
+
torchmetrics==1.8.2
|
| 32 |
|
| 33 |
# Audio processing
|
| 34 |
soundfile>=0.12.0
|