Spaces:
Running
on
Zero
Running
on
Zero
init
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def transcribe(inputs: str, prompt):
|
|
69 |
inputs = f.read()
|
70 |
inputs = ffmpeg_read(inputs, pipe.feature_extractor.sampling_rate)
|
71 |
array_pad = np.zeros(int(pipe.feature_extractor.sampling_rate * 0.5))
|
72 |
-
inputs = np.concatenate([
|
73 |
inputs = {"array": inputs, "sampling_rate": pipe.feature_extractor.sampling_rate}
|
74 |
return get_prediction(inputs, prompt)
|
75 |
|
|
|
69 |
inputs = f.read()
|
70 |
inputs = ffmpeg_read(inputs, pipe.feature_extractor.sampling_rate)
|
71 |
array_pad = np.zeros(int(pipe.feature_extractor.sampling_rate * 0.5))
|
72 |
+
inputs = np.concatenate([array_pad, inputs, array_pad])
|
73 |
inputs = {"array": inputs, "sampling_rate": pipe.feature_extractor.sampling_rate}
|
74 |
return get_prediction(inputs, prompt)
|
75 |
|