From e06b9a3a1611cd140900c3b090804688dd1c377d Mon Sep 17 00:00:00 2001 From: Dominik Strzako Date: Thu, 27 May 2021 12:51:55 +0200 Subject: [PATCH] sdggsgd --- Zadanie_09_MLflow_Predict_Registry.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Zadanie_09_MLflow_Predict_Registry.py b/Zadanie_09_MLflow_Predict_Registry.py index b3b090b..584889e 100644 --- a/Zadanie_09_MLflow_Predict_Registry.py +++ b/Zadanie_09_MLflow_Predict_Registry.py @@ -4,9 +4,10 @@ import pandas as pd mlflow.set_tracking_uri("http://172.17.0.1:5000") client = MlflowClient() -version = 3 +version = 0 model_name = "s434695" for mv in client.search_model_versions(f"name='{model_name}'"): + print(mv) if int(mv.version) > version: version = int(mv.version)