Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ def youtube_loader(link):
|
|
115 |
yt = YouTube(str(link))
|
116 |
video = yt.streams.filter(only_audio=True).first()
|
117 |
out_file = video.download(output_path='mp3')
|
118 |
-
os.rename(out_file, 'youtube.mp3')
|
119 |
return out_file
|
120 |
return process('/home/user/app/mp3/youtube.mp3')
|
121 |
|
|
|
115 |
yt = YouTube(str(link))
|
116 |
video = yt.streams.filter(only_audio=True).first()
|
117 |
out_file = video.download(output_path='mp3')
|
118 |
+
os.rename(out_file, '/home/user/app/mp3/youtube.mp3')
|
119 |
return out_file
|
120 |
return process('/home/user/app/mp3/youtube.mp3')
|
121 |
|