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