This commit is contained in:
@@ -248,6 +248,7 @@ models:
|
|||||||
-m /root/.cache/whisper/ggml-small.bin
|
-m /root/.cache/whisper/ggml-small.bin
|
||||||
--request-path /v1/audio
|
--request-path /v1/audio
|
||||||
--inference-path /transcriptions
|
--inference-path /transcriptions
|
||||||
|
--convert
|
||||||
--threads 6
|
--threads 6
|
||||||
--no-gpu
|
--no-gpu
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,14 @@ spec:
|
|||||||
else
|
else
|
||||||
echo "whisper-small model already present, skipping download"
|
echo "whisper-small model already present, skipping download"
|
||||||
fi
|
fi
|
||||||
|
if [ ! -f /root/.cache/ffmpeg/ffmpeg ]; then
|
||||||
|
echo "Installing ffmpeg..."
|
||||||
|
mkdir -p /root/.cache/ffmpeg
|
||||||
|
apt-get update -qq && apt-get install -y --no-install-recommends ffmpeg
|
||||||
|
cp /usr/bin/ffmpeg /root/.cache/ffmpeg/ffmpeg
|
||||||
|
else
|
||||||
|
echo "ffmpeg already present, skipping install"
|
||||||
|
fi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: models
|
- name: models
|
||||||
mountPath: /root/.cache
|
mountPath: /root/.cache
|
||||||
@@ -50,6 +58,9 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: models
|
- name: models
|
||||||
mountPath: /root/.cache
|
mountPath: /root/.cache
|
||||||
|
- name: models
|
||||||
|
mountPath: /usr/local/bin/ffmpeg
|
||||||
|
subPath: ffmpeg/ffmpeg
|
||||||
- mountPath: /dev/kfd
|
- mountPath: /dev/kfd
|
||||||
name: kfd
|
name: kfd
|
||||||
- mountPath: /dev/dri
|
- mountPath: /dev/dri
|
||||||
|
|||||||
Reference in New Issue
Block a user