Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def extract_audio(video):
|
|
22 |
my_clip = mp.VideoFileClip(video)
|
23 |
extracted_audio = r"/data/converted_audio.wav"
|
24 |
|
25 |
-
if
|
26 |
os.remove(extracted_audio)
|
27 |
my_clip.audio.write_audiofile(extracted_audio)
|
28 |
|
|
|
22 |
my_clip = mp.VideoFileClip(video)
|
23 |
extracted_audio = r"/data/converted_audio.wav"
|
24 |
|
25 |
+
if os.path.isfile(extracted_audio):
|
26 |
os.remove(extracted_audio)
|
27 |
my_clip.audio.write_audiofile(extracted_audio)
|
28 |
|