Merge branch 'upstream/develop'

# Conflicts:
#	webui.py
This commit is contained in:
Manuel Schmid
2024-04-30 15:34:16 +02:00
9 changed files with 116 additions and 44 deletions
+2
View File
@@ -14,6 +14,8 @@ def load_file_from_url(
Returns the path to the downloaded file.
"""
domain = os.environ.get("HF_MIRROR", "https://huggingface.co").rstrip('/')
url = str.replace(url, "https://huggingface.co", domain, 1)
os.makedirs(model_dir, exist_ok=True)
if not file_name:
parts = urlparse(url)