Darshan commited on
Commit
b2c0211
·
1 Parent(s): a01eec5

use different setup

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -3
  2. requirements.txt +6 -0
Dockerfile CHANGED
@@ -37,10 +37,11 @@ RUN pip install --no-cache-dir -r requirements.txt
37
  RUN git clone https://github.com/AI4Bharat/NeMo.git && \
38
  cd NeMo && \
39
  git checkout nemo-v2 && \
40
- pip install -e .
 
41
 
42
  # Copy application code
43
- COPY app.py .
44
 
45
  # Create directory for temporary files
46
  RUN mkdir -p /tmp/audio_files
@@ -49,4 +50,4 @@ RUN mkdir -p /tmp/audio_files
49
  EXPOSE 8000
50
 
51
  # Command to run the application
52
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
37
  RUN git clone https://github.com/AI4Bharat/NeMo.git && \
38
  cd NeMo && \
39
  git checkout nemo-v2 && \
40
+ pip install -e . && \
41
+ python3.10 -c "import nltk; nltk.download('punkt')"
42
 
43
  # Copy application code
44
+ COPY main.py ./main.py
45
 
46
  # Create directory for temporary files
47
  RUN mkdir -p /tmp/audio_files
 
50
  EXPOSE 8000
51
 
52
  # Command to run the application
53
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
requirements.txt CHANGED
@@ -10,3 +10,9 @@ huggingface_hub==0.23.2
10
  numpy>=1.20.0,<1.24.0
11
  soundfile>=0.12.1
12
  librosa>=0.10.1
 
 
 
 
 
 
 
10
  numpy>=1.20.0,<1.24.0
11
  soundfile>=0.12.1
12
  librosa>=0.10.1
13
+ hydra-core>=1.3.2
14
+ omegaconf>=2.3.0
15
+ pytorch-lightning>=2.1.0
16
+ transformers>=4.36.0
17
+ sacremoses>=0.0.53
18
+ nltk>=3.8.1