Simplify API
This commit is contained in:
parent
8f1418c346
commit
b56273e267
1 changed files with 5 additions and 7 deletions
|
|
@ -14,7 +14,6 @@ def use_model(
|
|||
key: str,
|
||||
*,
|
||||
version: Union[int, Literal["latest"]],
|
||||
return_path: bool = False,
|
||||
model_kwarg_name: str = "model",
|
||||
) -> Callable[[F], F]:
|
||||
assert (
|
||||
|
|
@ -24,7 +23,6 @@ def use_model(
|
|||
model, actual_version = load_model(
|
||||
key=key,
|
||||
version=None if version == "latest" else version,
|
||||
return_path=return_path,
|
||||
)
|
||||
|
||||
def decorator(func: F) -> F:
|
||||
|
|
|
|||
Loading…
Reference in a new issue