From 52e47f95b9d85bb80e8f69ad33461bd04a153944 Mon Sep 17 00:00:00 2001 From: Paul Pettit Date: Fri, 26 Apr 2024 15:01:04 +0100 Subject: [PATCH] run once to download faster-whisper-medium model --- Dockerfile | 7 ++++--- silent.mp3 | Bin 0 -> 4387 bytes 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 silent.mp3 diff --git a/Dockerfile b/Dockerfile index ffa7b3e..3545929 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/silent.mp3 b/silent.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..a3df1b2a233b9d7a84a2e8b3aeb053ddcd195ad3 GIT binary patch literal 4387 zcmeZtF=k-^0p*b3U{@f`&%nU!lUSB!W}s(ire|ni0G5Ri|9?9iK;lA}o_T5cKo(FR zg9ZbGz&8c~0WmRISy^ReO-)UGeN$6YYimbGM-LA_KfjQWsHmufgtWA@oSdSfqRPtp z`uf(^?(Xi16Q@s~K6mbtB}-PV+OT26wrzX%>^XGk#EBE<&RxBF_4e(D4<9~%{`T$L z&!2z({Q3Vs$Y!7;lYx#jHUx2CK!vpi!W8(X`Q!3RF#G>+fg=pe2N)Qa0J#bb3?>Z> z3@kp5zOKd~?}btVP)q^YquGpR4<)7}^kUc(jP4(VT1r?L_SDeHKg;OkpYwF`&ow&v zXVe~|k~>Da9u2qAa08Xsqv>EY9gL;}qS63J(P%kJbWouv91S;=;2@ea8g4`f6^g>q aa6<_W@;EfC7f>8DY7a_q5Y3@ixB&nvFJHC* literal 0 HcmV?d00001