Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -7,7 +7,7 @@ import io
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
class EndpointHandler():
|
| 10 |
-
def __init__(self):
|
| 11 |
self.pipeline = KPipeline(lang_code='a')
|
| 12 |
|
| 13 |
def __call__(self, inputs: Dict[str, Any]) -> Dict[str, Any]:
|
|
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
class EndpointHandler():
|
| 10 |
+
def __init__(self, model_dir: str):
|
| 11 |
self.pipeline = KPipeline(lang_code='a')
|
| 12 |
|
| 13 |
def __call__(self, inputs: Dict[str, Any]) -> Dict[str, Any]:
|