Spaces:
Runtime error
Runtime error
Update app_utils.py
Browse files- 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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|