Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -190,7 +190,7 @@ def add_voice_labelv2(json_file, audio_path):
|
|
| 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 |
if len(voice_idxs) == 0:
|
| 195 |
print("NO VOICE SEGMENTS DETECTED!")
|
| 196 |
try:
|
|
|
|
| 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 |
if len(voice_idxs) == 0:
|
| 195 |
print("NO VOICE SEGMENTS DETECTED!")
|
| 196 |
try:
|