class Pipeline: | |
def __init__(self, prefix: str = "Good morning,", postfix: str = '!'): | |
self.prefix = prefix | |
self.postfix = postfix | |
def __call__(self, inputs): | |
return f"{self.prefix} {inputs.title()}{self.postfix}" | |
class Pipeline: | |
def __init__(self, prefix: str = "Good morning,", postfix: str = '!'): | |
self.prefix = prefix | |
self.postfix = postfix | |
def __call__(self, inputs): | |
return f"{self.prefix} {inputs.title()}{self.postfix}" | |