Created
April 7, 2021 17:49
-
-
Save wild-endeavor/6056787554e9b004795e7a3f1e7e9d61 to your computer and use it in GitHub Desktop.
ML repa 2021 Flyte demo 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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