diff --git a/Jenkinsfile_predict_r b/Jenkinsfile_predict_r index f5abe34..4e85165 100644 --- a/Jenkinsfile_predict_r +++ b/Jenkinsfile_predict_r @@ -20,6 +20,7 @@ pipeline { { sh 'rm -r my_model' copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/mlflow', selector: buildParameter('WHICH_BUILD')) + sh 'ls' } } stage('predict') diff --git a/Zadanie_09_MLflow_Predict_Registry.py b/Zadanie_09_MLflow_Predict_Registry.py index 7ba1b18..f570dcf 100644 --- a/Zadanie_09_MLflow_Predict_Registry.py +++ b/Zadanie_09_MLflow_Predict_Registry.py @@ -19,7 +19,7 @@ model = mlflow.keras.load_model( model_uri=f"models:/{model_name}/{version}" ) -data = pd.read_json('my_model/input_example.json', orient='split') +data = pd.read_json('my_model/input_example.json', orient='index') print(data) print(model.predict(data)) \ No newline at end of file