This commit is contained in:
lvmin
2023-08-10 05:29:12 -07:00
parent a6ec0509fd
commit 2d090cf484
4 changed files with 39 additions and 20 deletions
+5 -5
View File
@@ -3,11 +3,11 @@ from urllib.parse import urlparse
def load_file_from_url(
url: str,
*,
model_dir: str,
progress: bool = True,
file_name: str | None = None,
url: str,
*,
model_dir: str,
progress: bool = True,
file_name: str | None = None,
) -> str:
"""Download a file from `url` into `model_dir`, using the file present if possible.