English
music
music-captioning
Inference Endpoints
ivillar commited on
Commit
9d408f3
1 Parent(s): 5e4e6f5

Change key

Browse files
Files changed (1) hide show
  1. 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["payload"])
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)