Skip to content

Commit 46843f5

Browse files
authored
Hotifixing fairseq. (#581)
1 parent e24f969 commit 46843f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-inference-community/docker_images/fairseq/app/pipelines/audio_to_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ def __call__(self, inputs: np.array) -> Tuple[np.array, int, List[str]]:
7575
wav, sr = TTSHubInterface.get_prediction(
7676
self.tts_task, self.tts_model, self.tts_generator, tts_sample
7777
)
78-
return wav.numpy(), sr, [text]
78+
return wav.unsqueeze(0).numpy(), sr, [text]

0 commit comments

Comments
 (0)