From f1c4d3b8c107503bf7e63c1441f9a4217c66c982 Mon Sep 17 00:00:00 2001 From: Alexander Guschin <1aguschin@gmail.com> Date: Fri, 27 Jan 2023 18:23:31 +0600 Subject: [PATCH] Fix `--standardize` not working (#588) close #587 --- mlem/cli/serve.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/mlem/cli/serve.py b/mlem/cli/serve.py index b05c05b1..d8f45086 100644 --- a/mlem/cli/serve.py +++ b/mlem/cli/serve.py @@ -1,6 +1,6 @@ from typing import List, Optional -from typer import Option, Typer +from typer import Typer from mlem.cli.main import ( app, @@ -33,14 +33,6 @@ ) app.add_typer(serve) -# Include "--standartize" for historical compatability -option_standardize = Option( - True, - "--standardize/--no-standardize", - "--standartize/--no-standartize", - help="Whether to conform model interface to standard ('predict' method with single arg 'data')", -) - @mlem_group_callback(serve, required=["model", "load"]) def serve_load( @@ -48,7 +40,6 @@ def serve_load( project: Optional[str] = option_project, rev: Optional[str] = option_rev, load: Optional[str] = option_load("server"), - standardize: bool = option_standardize, ): from mlem.api.commands import serve @@ -62,7 +53,6 @@ def serve_load( conf=None, file_conf=None, ), - standardize=standardize, ) @@ -84,7 +74,6 @@ def serve_command( project: Optional[str] = option_project, rev: Optional[str] = option_rev, file_conf: List[str] = option_file_conf("server"), - standardize: bool = option_standardize, **__kwargs__ ): from mlem.api.commands import serve @@ -101,5 +90,4 @@ def serve_command( file_conf=file_conf, **__kwargs__ ), - standardize=standardize, )