aiplexdeveloper commited on
Commit
20bba57
·
verified ·
1 Parent(s): 9401ac5

Update handler.py

Browse files
Files changed (1) hide show
  1. 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, inputs: Dict[str, Any]) -> Dict[str, Any]:
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")