mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-19 21:59:09 -04:00
setting up whisper transcriber
This commit is contained in:
17
python/tools/whisper/Dockerfile
Normal file
17
python/tools/whisper/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends python3 python3-pip ffmpeg \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip3 install --no-cache-dir --upgrade pip \
|
||||
&& pip3 install --no-cache-dir faster-whisper requests
|
||||
|
||||
WORKDIR /app
|
||||
COPY python/tools/whisper/inference.py /app/inference.py
|
||||
|
||||
ENTRYPOINT ["python3", "/app/inference.py"]
|
||||
Reference in New Issue
Block a user