Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-08-04 14:58:04 -04:00
parent fd842e275a
commit 49e3ff163a
4 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -202,7 +202,7 @@
"skip": true,
"extras": ""
},
"Ostris Flex.2 Preview": {
"path": "ostris/Flex.2-preview",
"preview": "ostris--Flex.2-preview.jpg",
+2 -3
View File
@@ -181,9 +181,8 @@ def download_civit_model_thread(model_name: str, model_url: str, model_path: str
def download_civit_model(model_url: str, model_name: str = '', model_path: str = '', model_type: str = '', token: str = None):
import threading
if model_url is None or len(model_url) == 0:
err = 'Model download: no url provided'
shared.log.error(err)
return err
shared.log.error('Model download: no url provided')
return
thread = threading.Thread(target=download_civit_model_thread, args=(model_name, model_url, model_path, model_type, token))
thread.start()
thread.join()
+1 -1
View File
@@ -157,7 +157,7 @@ def search_civitai(
model_names = [model.name.lower()]
version_names = [v.name.lower() for v in model.versions]
file_names = [f.name.lower() for v in model.versions for f in v.files]
if any([query.lower() in name for name in model_names + version_names + file_names]): # noqa: C419
if any([query.lower() in name for name in model_names + version_names + file_names]): # noqa: C419 # pylint: disable=use-a-generator
exact_models.append(model)
t1 = time.time()
-1
View File
@@ -189,7 +189,6 @@ def update_model_hashes():
ckpt.shorthash = ckpt.sha256[0:10] if ckpt.sha256 is not None else None
updated.append(ckpt)
yield update_model_hashes_table(updated)
return
def remove_hash(s):