Omar Sanseviero
commited on
Commit
·
d34ffad
1
Parent(s):
49fb52d
Update pipeline.py
Browse files- pipeline.py +2 -2
pipeline.py
CHANGED
|
@@ -7,7 +7,7 @@ class PreTrainedPipeline():
|
|
| 7 |
# For instance your model, processors, tokenizer that might be needed.
|
| 8 |
# This function is only called once, so do all the heavy processing I/O here"""
|
| 9 |
raise NotImplementedError(
|
| 10 |
-
"Please implement
|
| 11 |
)
|
| 12 |
|
| 13 |
def __call__(self, inputs: str) -> List[Dict[str, Any]]:
|
|
@@ -25,5 +25,5 @@ class PreTrainedPipeline():
|
|
| 25 |
"""
|
| 26 |
# IMPLEMENT_THIS
|
| 27 |
raise NotImplementedError(
|
| 28 |
-
"Please implement
|
| 29 |
)
|
|
|
|
| 7 |
# For instance your model, processors, tokenizer that might be needed.
|
| 8 |
# This function is only called once, so do all the heavy processing I/O here"""
|
| 9 |
raise NotImplementedError(
|
| 10 |
+
"Please implement PreTrainedPipeline __init__ function"
|
| 11 |
)
|
| 12 |
|
| 13 |
def __call__(self, inputs: str) -> List[Dict[str, Any]]:
|
|
|
|
| 25 |
"""
|
| 26 |
# IMPLEMENT_THIS
|
| 27 |
raise NotImplementedError(
|
| 28 |
+
"Please implement PreTrainedPipeline __call__ function"
|
| 29 |
)
|