Hello World Pipeline
Create your first pipeline
pip install kfpfrom kfp import dsl
@dsl.component
def say_hello(name: str) -> str:
hello_text = f'Hello, {name}!'
print(hello_text)
return hello_text
@dsl.pipeline
def hello_pipeline(recipient: str) -> str:
hello_task = say_hello(name=recipient)
return hello_task.outputfrom kfp import compiler
compiler.Compiler().compile(hello_pipeline, 'pipeline.yaml')Last updated