Spaces:
Runtime error
Runtime error
Update app_utils.py
Browse files- app_utils.py +2 -2
app_utils.py
CHANGED
@@ -430,8 +430,8 @@ def video_test(video):
|
|
430 |
my_audio_clip = AudioFileClip(video)
|
431 |
my_audio_clip.write_audiofile("data/audio.wav",ffmpeg_params=["-ac","1"])
|
432 |
|
433 |
-
Audio
|
434 |
-
text,prob2,label,path=classify_continuous(
|
435 |
|
436 |
score2=10*prob2[0]-10*prob[1]
|
437 |
print(prob2,label,path)
|
|
|
430 |
my_audio_clip = AudioFileClip(video)
|
431 |
my_audio_clip.write_audiofile("data/audio.wav",ffmpeg_params=["-ac","1"])
|
432 |
|
433 |
+
audio=gr.Audio("data/audio.wav")
|
434 |
+
text,prob2,label,path=classify_continuous(audio)
|
435 |
|
436 |
score2=10*prob2[0]-10*prob[1]
|
437 |
print(prob2,label,path)
|