Spaces:
Runtime error
Runtime error
Delete Dockerfile
Browse files- Dockerfile +0 -39
Dockerfile
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
FROM python:3.10
|
2 |
-
|
3 |
-
# Set the working directory
|
4 |
-
WORKDIR /home/user/app
|
5 |
-
|
6 |
-
# Install necessary system packages, including PortAudio
|
7 |
-
RUN apt-get update && \
|
8 |
-
apt-get install -y \
|
9 |
-
git \
|
10 |
-
git-lfs \
|
11 |
-
ffmpeg \
|
12 |
-
libsm6 \
|
13 |
-
libxext6 \
|
14 |
-
cmake \
|
15 |
-
rsync \
|
16 |
-
libgl1-mesa-glx \
|
17 |
-
curl \
|
18 |
-
portaudio19-dev \ # Install PortAudio
|
19 |
-
&& rm -rf /var/lib/apt/lists/* \
|
20 |
-
&& git lfs install
|
21 |
-
|
22 |
-
# Copy requirements.txt before installing dependencies
|
23 |
-
COPY requirements.txt ./transformers
|
24 |
-
datasets
|
25 |
-
soundfile
|
26 |
-
sounddevice
|
27 |
-
numpy
|
28 |
-
requests
|
29 |
-
torch
|
30 |
-
|
31 |
-
# Upgrade pip and install Python dependencies
|
32 |
-
RUN pip install --no-cache-dir --upgrade pip && \
|
33 |
-
pip install --no-cache-dir -r requirements.txt
|
34 |
-
|
35 |
-
# Copy your application code
|
36 |
-
docker build --no-cache -t yourname/voice-emotion-recognizer:latest .
|
37 |
-
|
38 |
-
# Command to run your application
|
39 |
-
CMD ["python", "your_application.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|