Liusuthu commited on
Commit
a3955bf
·
verified ·
1 Parent(s): 3199c92

Update app_utils.py

Browse files
Files changed (1) hide show
  1. 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="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)
 
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)