Skip to content

Commit

Permalink
update whisper
Browse files Browse the repository at this point in the history
  • Loading branch information
hagak committed Nov 30, 2024
1 parent 490ea72 commit b09f6d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions apps/whisper/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ apt-get update \
python3-dev \
python3-pip \
\
# && pip3 uninstall torch \
# && pip3 cache purge \
# && pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 \
&& pip3 install --no-cache-dir -U \
setuptools \
wheel \
Expand All @@ -31,4 +28,4 @@ COPY ./apps/whisper/entrypoint.sh /entrypoint.sh
ENV LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
EXPOSE 10300

ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["bash", "/entrypoint.sh"]
8 changes: 2 additions & 6 deletions apps/whisper/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#!/usr/bin/env bash
#shellcheck disable=SC2086

exec \
python3 -m wyoming_faster_whisper \
python3 -m wyoming_faster_whisper \
--uri 'tcp://0.0.0.0:10300' \
--data-dir /data \
--device cuda \
--download-dir /data "$@"
--download-dir /data "$@" \
--device cuda

0 comments on commit b09f6d3

Please sign in to comment.