meisin123 commited on
Commit
8dfda4e
1 Parent(s): 3a012cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 not os.path.isfile(extracted_audio):
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