Spaces:
Runtime error
Runtime error
BjarneBepaData
commited on
Commit
•
cf78cd2
1
Parent(s):
bb61e6e
A new cache directory
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -11,18 +11,16 @@ RUN apt-get update && apt-get install -y python3 python3-pip \
|
|
11 |
RUN pip install --upgrade pip
|
12 |
RUN pip install --upgrade git+https://github.com/huggingface/transformers.git accelerate datasets[audio]
|
13 |
|
14 |
-
RUN chmod -R 777 ~/.cache
|
15 |
-
|
16 |
#
|
17 |
WORKDIR /code
|
18 |
|
|
|
|
|
|
|
|
|
19 |
#
|
20 |
COPY ./requirements.txt /code/requirements.txt
|
21 |
|
22 |
-
# Download the models
|
23 |
-
RUN python3 -c 'from transformers import AutoModelForSpeechSeq2Seq; AutoModelForSpeechSeq2Seq.from_pretrained("openai/whisper-large-v3");'
|
24 |
-
RUN python3 -c 'from transformers import AutoProcessor; AutoProcessor.from_pretrained("openai/whisper-large-v3");'
|
25 |
-
|
26 |
#
|
27 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
28 |
|
|
|
11 |
RUN pip install --upgrade pip
|
12 |
RUN pip install --upgrade git+https://github.com/huggingface/transformers.git accelerate datasets[audio]
|
13 |
|
|
|
|
|
14 |
#
|
15 |
WORKDIR /code
|
16 |
|
17 |
+
RUN mkdir -p /app/.cache
|
18 |
+
RUN chmod -R 777 /app/.cache
|
19 |
+
ENV HUGGINGFACE_CACHE_DIR=/app/.cache
|
20 |
+
|
21 |
#
|
22 |
COPY ./requirements.txt /code/requirements.txt
|
23 |
|
|
|
|
|
|
|
|
|
24 |
#
|
25 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
26 |
|