asahi417 commited on
Commit
3b2410c
1 Parent(s): 35cff45
Files changed (1) hide show
  1. app.py +1 -1
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([inputs, inputs, inputs])
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