Update handler.py
Browse files- 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}]
|