diff --git a/mlflow_prediction_registry.py b/mlflow_prediction_registry.py index bcee87b..f8c5736 100644 --- a/mlflow_prediction_registry.py +++ b/mlflow_prediction_registry.py @@ -22,7 +22,7 @@ experiment = client.get_latest_versions(model_name, stages=None) print(experiment) -with open(f'{model_name}/{input}', 'r') as file: +with open(f'{experiment.source}/{input}', 'r') as file: json_data = json.load(file) print(model(torch.tensor(np.array(json_data['inputs'])).float())) \ No newline at end of file