Spaces:
Runtime error
Runtime error
Update app_utils.py
Browse files- app_utils.py +2 -2
app_utils.py
CHANGED
@@ -241,12 +241,12 @@ def video_score(video):
|
|
241 |
for i in f:
|
242 |
print(i)
|
243 |
|
244 |
-
|
245 |
#trans the audio file
|
246 |
my_audio_clip = AudioFileClip(video)
|
247 |
my_audio_clip.write_audiofile("data/audio.wav",ffmpeg_params=["-ac","1"])
|
248 |
|
249 |
-
return
|
250 |
|
251 |
# #trans the audio file
|
252 |
# my_audio_clip = AudioFileClip(video)
|
|
|
241 |
for i in f:
|
242 |
print(i)
|
243 |
|
244 |
+
score1=0*scores[0]-8*scores[1]+4*scores[2]+0*scores[3]+2*scores[4]+2*scores[5]+4*scores[6]
|
245 |
#trans the audio file
|
246 |
my_audio_clip = AudioFileClip(video)
|
247 |
my_audio_clip.write_audiofile("data/audio.wav",ffmpeg_params=["-ac","1"])
|
248 |
|
249 |
+
return score1,scores_str,"data/audio.wav"
|
250 |
|
251 |
# #trans the audio file
|
252 |
# my_audio_clip = AudioFileClip(video)
|