salmon-refrigerator-32115
def get_config(): current_directory = os.getcwd() print("Current directory:", current_directory) # .../dai-mle-paid-renewal # Open the JSON file with open('parameters.json') as f: # Load the contents of the file into a dictionary # params = f.read() params = json.load(f) print(type(params)) print(params) return params @task def test(config: Dict[str, Any]) -> None: print(config) @workflow def wf(config: Dict[str, Any] = get_config()) -> None: test(config=config)
Flyte enables production-grade orchestration for machine learning workflows and data processing created to accelerate local workflows to production.