J Z commited on
Commit
75ff2e0
·
verified ·
1 Parent(s): faecd51

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -10
Dockerfile CHANGED
@@ -44,21 +44,14 @@ RUN pip install --no-cache-dir \
44
  # Create dirs
45
  RUN mkdir -p /tmp/videos /tmp/tts_output /tmp/lipsync_output
46
 
47
- # Pre-download SNAC decoder (public, cached in Docker layer)
48
- RUN python -c "from huggingface_hub import snapshot_download; \
49
- snapshot_download('hubertsiuzdak/snac_24khz')" \
50
- || echo 'WARNING: SNAC pre-download failed'
51
-
52
- # Pre-download Orpheus finetuned model (NOT gated, can cache in Docker layer)
53
  RUN python -c "from huggingface_hub import snapshot_download; \
 
54
  snapshot_download('canopylabs/orpheus-3b-0.1-ft')" \
55
- || echo 'WARNING: Orpheus pre-download failed'
56
 
57
  # ---- APP CODE (only this rebuilds on code changes) ----
58
  COPY --chown=user ./app.py ./llm.py ./tts.py ./float_lipsync.py /app/
59
 
60
- # Copy voice reference + transcript for voice cloning (if present in repo)
61
- COPY --chown=user ./voice* /app/
62
-
63
  EXPOSE 7860
64
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
44
  # Create dirs
45
  RUN mkdir -p /tmp/videos /tmp/tts_output /tmp/lipsync_output
46
 
47
+ # Pre-download SNAC decoder and finetuned model (public, cached in Docker layer)
 
 
 
 
 
48
  RUN python -c "from huggingface_hub import snapshot_download; \
49
+ snapshot_download('hubertsiuzdak/snac_24khz'); \
50
  snapshot_download('canopylabs/orpheus-3b-0.1-ft')" \
51
+ || echo 'WARNING: model pre-download failed'
52
 
53
  # ---- APP CODE (only this rebuilds on code changes) ----
54
  COPY --chown=user ./app.py ./llm.py ./tts.py ./float_lipsync.py /app/
55
 
 
 
 
56
  EXPOSE 7860
57
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]