mimbres commited on
Commit
150b0ed
1 Parent(s): 5d24547

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -68,6 +68,7 @@ def prepare_media(source_path_or_url: os.PathLike,
68
  if source_type == 'audio_filepath':
69
  audio_file = source_path_or_url
70
  elif source_type == 'youtube_url':
 
71
  # Download from youtube
72
  with open(log_file, 'w') as lf:
73
  audio_file = './downloaded/yt_audio'
 
68
  if source_type == 'audio_filepath':
69
  audio_file = source_path_or_url
70
  elif source_type == 'youtube_url':
71
+ os.remove('/download/yt_audio.mp3')
72
  # Download from youtube
73
  with open(log_file, 'w') as lf:
74
  audio_file = './downloaded/yt_audio'