Change key
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -53,7 +53,7 @@ class EndpointHandler:
|
|
53 |
|
54 |
|
55 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
56 |
-
data = json.loads(data["
|
57 |
array = np.array(data['audio_list'], dtype=data["audio_dtype"])
|
58 |
array_shape = data['audio_shape']
|
59 |
input_audio = array.reshape(array_shape)
|
|
|
53 |
|
54 |
|
55 |
def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
|
56 |
+
data = json.loads(data["inputs"])
|
57 |
array = np.array(data['audio_list'], dtype=data["audio_dtype"])
|
58 |
array_shape = data['audio_shape']
|
59 |
input_audio = array.reshape(array_shape)
|