mimbres commited on
Commit
c7fa876
·
verified ·
1 Parent(s): 361dfb4

Update app.py

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