[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
66b05cc37b
commit
6a6b6c4c13
2 changed files with 0 additions and 2 deletions
|
|
@ -322,7 +322,6 @@ def _cached_row_task(repo_info, *, gguf: bool) -> Optional[str]:
|
|||
"""
|
||||
try:
|
||||
from routes.models import _cached_repo_task, _repo_gguf_task
|
||||
|
||||
return _repo_gguf_task(repo_info) if gguf else _cached_repo_task(repo_info)
|
||||
except Exception: # noqa: BLE001 -- a classification failure never hides a row
|
||||
return None
|
||||
|
|
|
|||
|
|
@ -721,7 +721,6 @@ async def list_local_models_response(models_dir: str = "./models") -> LocalModel
|
|||
# an untagged row is dropped from those lists. Imported lazily to keep the cycle out.
|
||||
try:
|
||||
from routes.models import _local_model_task
|
||||
|
||||
models = [m.model_copy(update = {"task": _local_model_task(m)}) for m in models]
|
||||
except Exception as e: # noqa: BLE001 -- classification never breaks the listing
|
||||
logger.warning("Could not classify local model tasks: %s", e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue