load_file_from_url() downloads the model from HF_ENDPOINT if it is set

This commit is contained in:
licyk 2025-03-22 16:00:06 +08:00
parent 374bb6cc38
commit 8a09e9f209
6 changed files with 11 additions and 10 deletions

View file

@ -91,4 +91,4 @@ refresh_checkpoints = shared_items.refresh_checkpoints
list_samplers = shared_items.list_samplers
reload_hypernetworks = shared_items.reload_hypernetworks
hf_endpoint = os.getenv('HF_ENDPOINT', 'https://huggingface.co')
hf_endpoint = os.getenv('HF_ENDPOINT', 'https://huggingface.co').rstrip('/')