Update pipeline.py
Browse files- pipeline.py +5 -3
pipeline.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
class Pipeline:
|
2 |
-
def __init__(self,
|
3 |
-
self.
|
|
|
|
|
4 |
def __call__(self, inputs):
|
5 |
-
return f"
|
1 |
class Pipeline:
|
2 |
+
def __init__(self, prefix: str = "Good morning,", postfix: str = '!'):
|
3 |
+
self.prefix = prefix
|
4 |
+
self.postfix = postfix
|
5 |
+
|
6 |
def __call__(self, inputs):
|
7 |
+
return f"{self.prefix} {inputs.title()}{self.postfix}"
|