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

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +3 -3
handler.py CHANGED
@@ -11,9 +11,9 @@ class EndpointHandler():
11
  self.pipeline = KPipeline(lang_code='a')
12
 
13
  def __call__(self, inputs: Dict[str, Any]) -> Dict[str, Any]:
14
-
15
- text = inputs["text"]
16
- voice = inputs["voice"]
17
 
18
  audio_segments = []
19
 
 
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")
17
 
18
  audio_segments = []
19