Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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'
|