rishidahiya commited on
Commit
38b0054
·
verified ·
1 Parent(s): 4bbf1c9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -18
Dockerfile CHANGED
@@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \
11
  # Clone the repo
12
  RUN git clone https://github.com/CorentinJ/Real-Time-Voice-Cloning.git .
13
 
14
- # Install Python dependencies with pip (not uv for Docker)
15
  RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
16
  RUN pip install --no-cache-dir librosa==0.9.2 matplotlib numpy scipy numba inflect==5.6.2 unidecode Pillow webrtcvad soundfile flask flask-cors python-dotenv
17
 
@@ -38,22 +38,6 @@ for name, url in urls.items():
38
  print(f'Failed to download {name}')
39
  EOF
40
 
41
- ssl._create_default_https_context = ssl._create_unverified_context
42
-
43
- urls = {
44
- 'encoder.pt': 'https://github.com/CorentinJ/Real-Time-Voice-Cloning/releases/download/v1.0/encoder.pt',
45
- 'synthesizer.pt': 'https://github.com/CorentinJ/Real-Time-Voice-Cloning/releases/download/v1.0/synthesizer.pt',
46
- 'vocoder.pt': 'https://github.com/CorentinJ/Real-Time-Voice-Cloning/releases/download/v1.0/vocoder.pt'
47
- }
48
-
49
- for name, url in urls.items():
50
- try:
51
- print(f'Downloading {name}...')
52
- urllib.request.urlretrieve(url, f'saved_models/{name}')
53
- except:
54
- print(f'Failed to download {name}')
55
- "
56
-
57
  EXPOSE 7860
58
 
59
- CMD [\"python\", \"app.py\"]
 
11
  # Clone the repo
12
  RUN git clone https://github.com/CorentinJ/Real-Time-Voice-Cloning.git .
13
 
14
+ # Install Python dependencies with pip
15
  RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
16
  RUN pip install --no-cache-dir librosa==0.9.2 matplotlib numpy scipy numba inflect==5.6.2 unidecode Pillow webrtcvad soundfile flask flask-cors python-dotenv
17
 
 
38
  print(f'Failed to download {name}')
39
  EOF
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  EXPOSE 7860
42
 
43
+ CMD ["python", "app.py"]