helloWorld199 commited on
Commit
e4b33c0
1 Parent(s): f1fd764

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -189,8 +189,8 @@ def add_voice_labelv2(json_file, audio_path):
189
  speech_probs.append(speech_prob)
190
  vad_iterator.reset_states() # reset model states after each audio
191
 
192
- voice_idxs = np.where(np.array(speech_probs) >= 0.7)
193
- print(len(np.where(np.array(speech_probs) >= 0.7)))
194
 
195
  if len(voice_idxs) == 0:
196
  print("NO VOICE SEGMENTS DETECTED!")
 
189
  speech_probs.append(speech_prob)
190
  vad_iterator.reset_states() # reset model states after each audio
191
 
192
+ voice_idxs = np.where(np.array(speech_probs) >= 0.7)[0]
193
+ print(len(voice_idxs))
194
 
195
  if len(voice_idxs) == 0:
196
  print("NO VOICE SEGMENTS DETECTED!")