Commit ·
4a37e60
1
Parent(s): 558a4b5
Create new file
Browse files- pipeline.py +9 -0
pipeline.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
class PreTrainedPipeline():
|
| 3 |
+
def __init__(self, path):
|
| 4 |
+
|
| 5 |
+
def __call__(self, inputs)-> Dict[str, str]:
|
| 6 |
+
|
| 7 |
+
return {
|
| 8 |
+
"text": "hello"
|
| 9 |
+
}
|