mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix ruff styling
This commit is contained in:
parent
522ff4a042
commit
a0996b1c0a
@ -330,7 +330,9 @@ class ModelInstall(object):
|
||||
with TemporaryDirectory(dir=self.config.models_path) as staging:
|
||||
CIVITAI_RE = r".*civitai.com.*"
|
||||
civit_url = re.match(CIVITAI_RE, url, re.IGNORECASE)
|
||||
location = download_with_resume(url, Path(staging), access_token=self.civitai_api_key if civit_url else None)
|
||||
location = download_with_resume(
|
||||
url, Path(staging), access_token=self.civitai_api_key if civit_url else None
|
||||
)
|
||||
if not location:
|
||||
logger.error(f"Unable to download {url}. Skipping.")
|
||||
info = ModelProbe().heuristic_probe(location, self.prediction_helper)
|
||||
|
Loading…
Reference in New Issue
Block a user