Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -5,7 +5,7 @@ class EndpointHandler():
|
|
| 5 |
def __init__(self, path=""):
|
| 6 |
self.pipeline = pipeline("text-classification", model=path)
|
| 7 |
|
| 8 |
-
def __call__(self, data: str) -> List[str]]:
|
| 9 |
"""
|
| 10 |
data args:
|
| 11 |
inputs (:obj: `str`)
|
|
|
|
| 5 |
def __init__(self, path=""):
|
| 6 |
self.pipeline = pipeline("text-classification", model=path)
|
| 7 |
|
| 8 |
+
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
| 9 |
"""
|
| 10 |
data args:
|
| 11 |
inputs (:obj: `str`)
|