Spaces:
Sleeping
Sleeping
husseinelsaadi Claude Opus 4.8 commited on
Commit ·
ed131b8
1
Parent(s): ef5d955
Use faster-whisper 1.1.1 + wheeled av 13.1.0 (av 11 had no wheels and failed to compile on modern ffmpeg)
Browse files- Dockerfile +3 -6
- requirements.txt +2 -1
Dockerfile
CHANGED
|
@@ -13,13 +13,10 @@ ENV OMP_NUM_THREADS=1 \
|
|
| 13 |
HUGGINGFACE_HUB_CACHE=/tmp/huggingface/hub
|
| 14 |
|
| 15 |
# System libraries:
|
| 16 |
-
# ffmpeg / libsndfile1
|
| 17 |
-
# git, build-essential
|
| 18 |
-
# pkg-config + libav*-dev - required to compile PyAV (a faster-whisper dep)
|
| 19 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 20 |
-
ffmpeg git libsndfile1 build-essential
|
| 21 |
-
libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev \
|
| 22 |
-
libavfilter-dev libswscale-dev libswresample-dev \
|
| 23 |
&& rm -rf /var/lib/apt/lists/*
|
| 24 |
|
| 25 |
# Install the CPU build of PyTorch first so the heavy CUDA wheel is never
|
|
|
|
| 13 |
HUGGINGFACE_HUB_CACHE=/tmp/huggingface/hub
|
| 14 |
|
| 15 |
# System libraries:
|
| 16 |
+
# ffmpeg / libsndfile1 - audio decode for whisper, soundfile, librosa
|
| 17 |
+
# git, build-essential - building any source-only wheels
|
|
|
|
| 18 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 19 |
+
ffmpeg git libsndfile1 build-essential \
|
|
|
|
|
|
|
| 20 |
&& rm -rf /var/lib/apt/lists/*
|
| 21 |
|
| 22 |
# Install the CPU build of PyTorch first so the heavy CUDA wheel is never
|
requirements.txt
CHANGED
|
@@ -22,7 +22,8 @@ inputimeout==1.0.4
|
|
| 22 |
evaluate==0.4.5
|
| 23 |
accelerate==0.29.3
|
| 24 |
huggingface_hub==0.20.3
|
| 25 |
-
faster-whisper==
|
|
|
|
| 26 |
edge-tts==6.1.2
|
| 27 |
gunicorn
|
| 28 |
python-dotenv
|
|
|
|
| 22 |
evaluate==0.4.5
|
| 23 |
accelerate==0.29.3
|
| 24 |
huggingface_hub==0.20.3
|
| 25 |
+
faster-whisper==1.1.1
|
| 26 |
+
av==13.1.0
|
| 27 |
edge-tts==6.1.2
|
| 28 |
gunicorn
|
| 29 |
python-dotenv
|