Liusuthu commited on
Commit
bba356d
Β·
verified Β·
1 Parent(s): b5a18b5

Update app_utils.py

Browse files
Files changed (1) hide show
  1. app_utils.py +0 -28
app_utils.py CHANGED
@@ -329,31 +329,3 @@ def video_score(video):
329
  return text,score
330
  #######################################################################
331
 
332
-
333
- ###########################################################################################################################
334
- # def video_score(video):
335
- #
336
- # 。。。。。。。。。。。。。。。。。
337
- # return stat,score1,"data/audio.wav"
338
-
339
- # # #trans the audio file
340
- # # my_audio_clip = AudioFileClip(video)
341
- # # my_audio_clip.write_audiofile("newaudio.wav",ffmpeg_params=["-ac","1"])
342
-
343
- # # # Audio="data/audio.wav"
344
- # # # text,prob2,label,path=classify_continuous(Audio)
345
- # # #0ζ˜―ζŠ‘ιƒζ¦‚ηŽ‡οΌŒ1ζ˜―ιžζŠ‘ιƒζ¦‚ηŽ‡
346
- # # # score2=10*prob2[0]-10*prob[1]
347
- # # # print(prob2,label)
348
- # # # score2=0
349
- # # # print("score2=",score2)
350
-
351
- # # # text_result="demo"
352
- # # # # text_result=text_api(text)
353
- # # # print(text_result)
354
-
355
- # # return score1
356
-
357
-
358
-
359
- #ζ‰“εˆ†ε‡½ζ•°
 
329
  return text,score
330
  #######################################################################
331