Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -20
Dockerfile
CHANGED
@@ -1,22 +1,6 @@
|
|
1 |
-
FROM python:3.
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
libasound2-dev \
|
6 |
-
libpulse-dev \
|
7 |
-
espeak \
|
8 |
-
sphinxbase-utils \
|
9 |
-
pocketsphinx-utils
|
10 |
-
|
11 |
-
# Set the working directory
|
12 |
WORKDIR /app
|
13 |
-
|
14 |
-
# Copy the requirements file and install dependencies
|
15 |
-
COPY requirements.txt .
|
16 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
-
|
18 |
-
# Copy the application code
|
19 |
-
COPY . .
|
20 |
-
|
21 |
-
# Set the command to run the Gradio app
|
22 |
CMD ["python", "app.py"]
|
|
|
1 |
+
FROM python:3.11
|
2 |
+
RUN apt-get update && apt-get install -y portaudio19-dev
|
3 |
+
RUN pip install pyaudio gradio datasets transformers torch pandas numpy matplotlib Pillow speechrecognition
|
4 |
+
COPY . /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
CMD ["python", "app.py"]
|