import json def load_spec(path_to_model_file): with open(path_to_model_file, 'r') as file: model=json.load(file) return model