Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -10,7 +10,7 @@ class EndpointHandler():
|
|
| 10 |
def __init__(self, model_dir: str):
|
| 11 |
self.pipeline = KPipeline(lang_code='a')
|
| 12 |
|
| 13 |
-
def __call__(self,
|
| 14 |
inputs = data.get("inputs", {})
|
| 15 |
text = inputs.get("text")
|
| 16 |
voice = inputs.get("voice")
|
|
|
|
| 10 |
def __init__(self, model_dir: str):
|
| 11 |
self.pipeline = KPipeline(lang_code='a')
|
| 12 |
|
| 13 |
+
def __call__(self, data: Dict[str, Any]) -> Dict[str, Any]:
|
| 14 |
inputs = data.get("inputs", {})
|
| 15 |
text = inputs.get("text")
|
| 16 |
voice = inputs.get("voice")
|