Skip to content

Commit

Permalink
run once to download faster-whisper-medium model
Browse files Browse the repository at this point in the history
  • Loading branch information
ppettit committed Apr 26, 2024
1 parent 691fbb3 commit 52e47f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ RUN useradd -u $GROUP_ID -g $USER_ID $USER
# Install necessary dependencies
RUN dnf install python38 -y && dnf clean all

# Set the working directory
WORKDIR /app

# Install whisper-ctranslate2
RUN pip3 install --no-cache-dir -U whisper-ctranslate2

USER $USER

# run once to download model
COPY silent.mp3 /tmp
RUN whisper-ctranslate2 --model medium -o /tmp /tmp/silent.mp3

# Set the entry point
ENTRYPOINT ["whisper-ctranslate2"]
Binary file added silent.mp3
Binary file not shown.

0 comments on commit 52e47f9

Please sign in to comment.