chore(deps): update machine-learning (major) (#6934)

* chore(deps): update machine-learning

* formatting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2024-02-12 22:29:15 -05:00 committed by GitHub
parent bfba81de94
commit 2b8ec30767
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 32 deletions

View file

@ -62,8 +62,7 @@ class InferenceModel(ABC):
return self._predict(inputs)
@abstractmethod
def _predict(self, inputs: Any) -> Any:
...
def _predict(self, inputs: Any) -> Any: ...
def configure(self, **model_kwargs: Any) -> None:
pass
@ -79,8 +78,7 @@ class InferenceModel(ABC):
)
@abstractmethod
def _load(self) -> None:
...
def _load(self) -> None: ...
def clear_cache(self) -> None:
if not self.cache_dir.exists():