Skip to content

Instantly share code, notes, and snippets.

@wild-endeavor
Created April 7, 2021 17:49
Show Gist options
  • Save wild-endeavor/6056787554e9b004795e7a3f1e7e9d61 to your computer and use it in GitHub Desktop.
Save wild-endeavor/6056787554e9b004795e7a3f1e7e9d61 to your computer and use it in GitHub Desktop.
ML repa 2021 Flyte demo 2
from flytekit import task, workflow
@task
def combine_strings(a: str, b: str) -> str:
return f"{a} {b}"
@workflow
def hello_world(wf_in1: str, wf_in2: str) -> str:
return combine_strings(a=wf_in1, b=wf_in2)
if __name__ == "__main__":
print(hello_world(wf_in1="hello", wf_in2="world"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment