From 1eacefde736e612a23ae56ba9ee3046fcf1f9b04 Mon Sep 17 00:00:00 2001 From: Dominik Strzako Date: Thu, 27 May 2021 12:50:10 +0200 Subject: [PATCH] fsdfsfd --- Zadanie_09_MLflow_Predict_Registry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Zadanie_09_MLflow_Predict_Registry.py b/Zadanie_09_MLflow_Predict_Registry.py index 63967c3..b3b090b 100644 --- a/Zadanie_09_MLflow_Predict_Registry.py +++ b/Zadanie_09_MLflow_Predict_Registry.py @@ -6,9 +6,9 @@ mlflow.set_tracking_uri("http://172.17.0.1:5000") client = MlflowClient() version = 3 model_name = "s434695" -#for mv in client.search_model_versions(f"name='{model_name}'"): -# if int(mv.version) > version: -# version = int(mv.version) +for mv in client.search_model_versions(f"name='{model_name}'"): + if int(mv.version) > version: + version = int(mv.version) print(f"selected version {version}")