Spaces:
Configuration error
Configuration error
Fedir Zadniprovskyi
commited on
Commit
·
883ce74
1
Parent(s):
c9f760a
fix: enabling `hf_transfer` breaks downloads when running as docker container
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -35,7 +35,9 @@ ENV UVICORN_HOST=0.0.0.0
|
|
35 |
ENV UVICORN_PORT=8000
|
36 |
ENV PATH="$HOME/faster-whisper-server/.venv/bin:$PATH"
|
37 |
# https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#hfhubenablehftransfer
|
38 |
-
|
|
|
|
|
39 |
# https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#donottrack
|
40 |
# https://www.reddit.com/r/StableDiffusion/comments/1f6asvd/gradio_sends_ip_address_telemetry_by_default/
|
41 |
ENV DO_NOT_TRACK=1
|
|
|
35 |
ENV UVICORN_PORT=8000
|
36 |
ENV PATH="$HOME/faster-whisper-server/.venv/bin:$PATH"
|
37 |
# https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#hfhubenablehftransfer
|
38 |
+
# NOTE: I've disabled this because it doesn't inside of Docker container. I couldn't pinpoint the exact reason. This doesn't happen when running the server locally.
|
39 |
+
# RuntimeError: An error occurred while downloading using `hf_transfer`. Consider disabling HF_HUB_ENABLE_HF_TRANSFER for better error handling.
|
40 |
+
ENV HF_HUB_ENABLE_HF_TRANSFER=0
|
41 |
# https://huggingface.co/docs/huggingface_hub/en/package_reference/environment_variables#donottrack
|
42 |
# https://www.reddit.com/r/StableDiffusion/comments/1f6asvd/gradio_sends_ip_address_telemetry_by_default/
|
43 |
ENV DO_NOT_TRACK=1
|