radames commited on
Commit
7505741
1 Parent(s): 54ef705
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -70,9 +70,9 @@ COPY --from=frontend /app/dist ./streaming-react-app/dist
70
 
71
  WORKDIR $HOME/app/seamless_server
72
  # temporary hack to link SeamlessStreaming models
73
- ARG HF_TOKEN
74
- ENV HF_TOKEN=$HF_TOKEN
75
- RUN huggingface-cli download meta-private/SeamlessStreaming seamless_streaming_unity.pt spm_char_lang38_tc.model seamless_streaming_monotonic_decoder.pt --local-dir ./models/ && \
76
  huggingface-cli download meta-private/SeamlessExpressive pretssel_melhifigan_wm-final.pt --local-dir ./models/
77
  USER root
78
  RUN mkdir -p /large_experiments/seamless/ust/krs/fairseq2_checkpoints/ && \
 
70
 
71
  WORKDIR $HOME/app/seamless_server
72
  # temporary hack to link SeamlessStreaming models
73
+ RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
74
+ huggingface-cli login --token $(cat /run/secrets/HF_TOKEN) && \
75
+ huggingface-cli download meta-private/SeamlessStreaming seamless_streaming_unity.pt spm_char_lang38_tc.model seamless_streaming_monotonic_decoder.pt --local-dir ./models/ && \
76
  huggingface-cli download meta-private/SeamlessExpressive pretssel_melhifigan_wm-final.pt --local-dir ./models/
77
  USER root
78
  RUN mkdir -p /large_experiments/seamless/ust/krs/fairseq2_checkpoints/ && \