cigol123 commited on
Commit
9f6ab6b
·
verified ·
1 Parent(s): 15f730f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -29,9 +29,9 @@ RUN pip install --no-cache-dir -r requirements.txt
29
  COPY . .
30
 
31
  # Pre-download the Whisper model during the build process
32
- RUN python -c "from transformers import WhisperProcessor, WhisperForConditionalGeneration; \
33
- WhisperProcessor.from_pretrained('openai/whisper-large-v3', cache_dir='/app/.cache'); \
34
- WhisperForConditionalGeneration.from_pretrained('openai/whisper-large-v3', cache_dir='/app/.cache')"
35
 
36
  # Expose port 7860 (default port for Gradio)
37
  EXPOSE 7860
 
29
  COPY . .
30
 
31
  # Pre-download the Whisper model during the build process
32
+ # Pre-download the Whisper model during the build process
33
+ COPY download_model.py .
34
+ RUN python download_model.py
35
 
36
  # Expose port 7860 (default port for Gradio)
37
  EXPOSE 7860