-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathDockerfile
37 lines (27 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM pytorch/pytorch:2.4.0-cuda12.4-cudnn9-runtime
ENV PYTHONUNBUFFERED=1
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
git-lfs \
locales && \
rm -rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
WORKDIR /workspace
COPY . /workspace/
ARG HUGGINGFACE_ACCESS_TOKEN
ENV HUGGINGFACE_ACCESS_TOKEN=${HUGGINGFACE_ACCESS_TOKEN}
# manually download ASR model
# diarization will be download automatically when running the script due to HF integration
RUN git lfs install
RUN git clone https://${HUGGINGFACE_ACCESS_TOKEN}:${HUGGINGFACE_ACCESS_TOKEN}@huggingface.co/Revai/reverb-asr /root/.cache/reverb/reverb_asr_v1
RUN pip3 install /workspace/
RUN pip3 install -r /workspace/diarization/requirements.txt
ENV PYTHONPATH=/workspace/asr/:$PYTHONPATH
RUN reverb --help
RUN python3 /workspace/diarization/infer_pyannote3.0.py --help