DavidCombei commited on
Commit
711f553
·
verified ·
1 Parent(s): 879c4b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def segment_audio(audio, sr, segment_duration):
51
  # if the segment is shorter than 0.7s, skip it to avoid complications inside wav2vec2
52
  if len(seg) > 0.7 * sr:
53
  segments_check.append(seg)
54
- return segments_check
55
 
56
  def process_audio(input_data, segment_duration=10):
57
  audio, sr = librosa.load(input_data, sr=16000)
 
51
  # if the segment is shorter than 0.7s, skip it to avoid complications inside wav2vec2
52
  if len(seg) > 0.7 * sr:
53
  segments_check.append(seg)
54
+ return segments_check
55
 
56
  def process_audio(input_data, segment_duration=10):
57
  audio, sr = librosa.load(input_data, sr=16000)