Skip to content

Commit 907fd91

Browse files
authored
Fixed constants.py not using hugging face hub environment variable (huggingface#5222)
1 parent 0c7cb9a commit 907fd91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/utils/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
ONNX_WEIGHTS_NAME = "model.onnx"
2626
SAFETENSORS_WEIGHTS_NAME = "diffusion_pytorch_model.safetensors"
2727
ONNX_EXTERNAL_WEIGHTS_NAME = "weights.pb"
28-
HUGGINGFACE_CO_RESOLVE_ENDPOINT = "https://huggingface.co"
28+
HUGGINGFACE_CO_RESOLVE_ENDPOINT = os.environ.get("HF_ENDPOINT", "https://huggingface.co")
2929
DIFFUSERS_CACHE = default_cache_path
3030
DIFFUSERS_DYNAMIC_MODULE_NAME = "diffusers_modules"
3131
HF_MODULES_CACHE = os.getenv("HF_MODULES_CACHE", os.path.join(hf_cache_home, "modules"))

0 commit comments

Comments
 (0)