Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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!")
|