Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -5,19 +5,20 @@ WORKDIR /app
|
|
5 |
# Install system packages
|
6 |
RUN apt-get update && apt-get install -y ffmpeg git wget && rm -rf /var/lib/apt/lists/*
|
7 |
|
8 |
-
# Set cache
|
9 |
ENV XDG_CACHE_HOME=/app/.cache
|
|
|
10 |
|
11 |
# Create cache dirs with write permission
|
12 |
-
RUN mkdir -p /app/.cache/whisper && chmod -R 777 /app/.cache
|
13 |
|
14 |
# Upgrade pip
|
15 |
RUN pip install --no-cache-dir --upgrade pip
|
16 |
|
17 |
-
# Copy source
|
18 |
COPY . .
|
19 |
|
20 |
-
# Download Hugging Face
|
21 |
RUN mkdir -p src && wget -O src/custome_interface.py https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-en-english/resolve/main/custom_interface.py
|
22 |
|
23 |
# Install Python dependencies
|
|
|
5 |
# Install system packages
|
6 |
RUN apt-get update && apt-get install -y ffmpeg git wget && rm -rf /var/lib/apt/lists/*
|
7 |
|
8 |
+
# Set cache envs (for Whisper + Hugging Face + SpeechBrain)
|
9 |
ENV XDG_CACHE_HOME=/app/.cache
|
10 |
+
ENV SPEECHBRAIN_CACHE=/app/.cache/speechbrain
|
11 |
|
12 |
# Create cache dirs with write permission
|
13 |
+
RUN mkdir -p /app/.cache/whisper /app/.cache/speechbrain && chmod -R 777 /app/.cache
|
14 |
|
15 |
# Upgrade pip
|
16 |
RUN pip install --no-cache-dir --upgrade pip
|
17 |
|
18 |
+
# Copy source
|
19 |
COPY . .
|
20 |
|
21 |
+
# Download Hugging Face interface file
|
22 |
RUN mkdir -p src && wget -O src/custome_interface.py https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-en-english/resolve/main/custom_interface.py
|
23 |
|
24 |
# Install Python dependencies
|