[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
2ef9b0e09f
commit
e948a9601c
3 changed files with 3 additions and 7 deletions
|
|
@ -384,10 +384,7 @@ def detect_family(
|
|||
term_compact = re.sub(r"[^a-z0-9]+", "", term.lower())
|
||||
if not term_compact:
|
||||
return False
|
||||
return (
|
||||
term_compact in needle_compact_tokens
|
||||
or term_compact == needle_compact
|
||||
)
|
||||
return term_compact in needle_compact_tokens or term_compact == needle_compact
|
||||
|
||||
# Scan _FAMILIES first (GGUF-supported), then _FULL_REPO_FAMILIES
|
||||
# so a repo like ``stabilityai/stable-diffusion-xl-base-1.0`` is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue