Spaces:
Build error
Build error
Update audio_pipe.py
Browse files- audio_pipe.py +2 -2
audio_pipe.py
CHANGED
@@ -122,8 +122,8 @@ class SpeechToSpeechPipeline():
|
|
122 |
or some annotation for speech enhancement. The length must be `C'`.
|
123 |
"""
|
124 |
# _inputs = torch.from_numpy(inputs).unsqueeze(0)
|
125 |
-
print(f"input: {inputs}")
|
126 |
-
_inputs = torchaudio.load(inputs)
|
127 |
sample, text = None, None
|
128 |
if self.cfg.task._name in ["speech_to_text", "speech_to_text_sharded"]:
|
129 |
sample = S2THubInterface.get_model_input(self.task, _inputs)
|
|
|
122 |
or some annotation for speech enhancement. The length must be `C'`.
|
123 |
"""
|
124 |
# _inputs = torch.from_numpy(inputs).unsqueeze(0)
|
125 |
+
# print(f"input: {inputs}")
|
126 |
+
# _inputs = torchaudio.load(inputs)
|
127 |
sample, text = None, None
|
128 |
if self.cfg.task._name in ["speech_to_text", "speech_to_text_sharded"]:
|
129 |
sample = S2THubInterface.get_model_input(self.task, _inputs)
|