Anupam251272 commited on
Commit
549e01e
·
verified ·
1 Parent(s): ec4e869

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -20
Dockerfile CHANGED
@@ -1,22 +1,6 @@
1
- FROM python:3.10
2
-
3
- # Install system dependencies for SpeechRecognition and CMU Sphinx
4
- RUN apt-get update && apt-get install -y \
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"]