nickmuchi commited on
Commit
2b2fce9
1 Parent(s): c2d4173

Update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +2 -2
functions.py CHANGED
@@ -119,8 +119,8 @@ def get_yt_audio(url):
119
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
120
  ydl.download([url])
121
 
122
- with open(temp_audio_file+'.mp3', 'rb') as file:
123
- audio_file = file.read()
124
 
125
  return audio_file
126
 
 
119
  with yt_dlp.YoutubeDL(ydl_opts) as ydl:
120
  ydl.download([url])
121
 
122
+ #with open(temp_audio_file+'.mp3', 'rb') as file:
123
+ audio_file = os.path.join('output', 'audio.mp3')
124
 
125
  return audio_file
126