jamesdon commited on
Commit
c83c7b8
1 Parent(s): e62c5d9

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -31,6 +31,6 @@ class EndpointHandler:
31
  outputs = self.model.generate(**inputs)
32
 
33
  # postprocess the prediction
34
- prediction = outputs[0].cpu().numpy()
35
 
36
  return [{"generated_audio": prediction}]
 
31
  outputs = self.model.generate(**inputs)
32
 
33
  # postprocess the prediction
34
+ prediction = outputs[0, 0].cpu().numpy()
35
 
36
  return [{"generated_audio": prediction}]