mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Python v3.9 (#189)
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
import os
|
import os
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
def load_file_from_url(
|
def load_file_from_url(
|
||||||
url: str,
|
url: str,
|
||||||
*,
|
*,
|
||||||
model_dir: str,
|
model_dir: str,
|
||||||
progress: bool = True,
|
progress: bool = True,
|
||||||
file_name: str | None = None,
|
file_name: Optional[str] = None,
|
||||||
) -> str:
|
) -> str:
|
||||||
"""Download a file from `url` into `model_dir`, using the file present if possible.
|
"""Download a file from `url` into `model_dir`, using the file present if possible.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user