Skip to content

Commit

Permalink
Fix: support models saved with mlflow=2 in mlflowserver conda_env_cre…
Browse files Browse the repository at this point in the history
…ate (#4505)
  • Loading branch information
maxb2 authored Jan 10, 2023
1 parent 6179015 commit 3590848
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions servers/mlflowserver/mlflowserver/conda_env_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def setup_env(model_folder):
flavours = mlmodel["flavors"]
pyfunc_flavour = flavours["python_function"]
env_file_name = pyfunc_flavour["env"]
if isinstance(env_file_name, dict):
env_file_name = env_file_name["conda"]
env_file_path = os.path.join(model_folder, env_file_name)
env_file_path = copy_env(env_file_path)

Expand Down

0 comments on commit 3590848

Please sign in to comment.