Spaces:
Sleeping
Sleeping
Emmanuel Durand commited on
Commit ·
15ed30c
1
Parent(s): a0c1565
Test whisper.cpp in HF Spaces
Browse files- Dockerfile +13 -0
Dockerfile
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM nvidia/cuda:12.9.0-cudnn-devel-ubuntu24.04
|
| 2 |
+
|
| 3 |
+
RUN DEBIAN_FRONTED=noninteractive apt update && apt upgrade -y
|
| 4 |
+
RUN DEBIAN_FRONTED=noninteractive apt install -y git git-lfs build-essential cmake ninja-build curl libsdl2-dev
|
| 5 |
+
|
| 6 |
+
RUN git clone https://github.com/ggml-org/whisper.cpp.git
|
| 7 |
+
WORKDIR whisper.cpp
|
| 8 |
+
RUN sh ./models/download-ggml-model.sh base.en
|
| 9 |
+
ENV LD_LIBRARY_PATH="/usr/local/cuda/compat:$LD_LIBRARY_PATH"
|
| 10 |
+
RUN cmake -B build -GNinja -DGGML_CUDA=1 -DWHISPER_SDL2=ON -DWHISPER_BUILD_TESTS=OFF && \
|
| 11 |
+
cmake --build build --config Release
|
| 12 |
+
|
| 13 |
+
CMD ./build/bin/whisper-cli -m models/ggml-base.en.bin -f samples/jfk.wav --print-colors
|