We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c7cb9a commit 907fd91Copy full SHA for 907fd91
src/diffusers/utils/constants.py
@@ -25,7 +25,7 @@
25
ONNX_WEIGHTS_NAME = "model.onnx"
26
SAFETENSORS_WEIGHTS_NAME = "diffusion_pytorch_model.safetensors"
27
ONNX_EXTERNAL_WEIGHTS_NAME = "weights.pb"
28
-HUGGINGFACE_CO_RESOLVE_ENDPOINT = "https://huggingface.co"
+HUGGINGFACE_CO_RESOLVE_ENDPOINT = os.environ.get("HF_ENDPOINT", "https://huggingface.co")
29
DIFFUSERS_CACHE = default_cache_path
30
DIFFUSERS_DYNAMIC_MODULE_NAME = "diffusers_modules"
31
HF_MODULES_CACHE = os.getenv("HF_MODULES_CACHE", os.path.join(hf_cache_home, "modules"))
0 commit comments