tensorkelechi commited on
Commit
5b3e98d
·
verified ·
1 Parent(s): 6b21f18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,7 +34,8 @@ def youtube_video_downloader(url):
34
 
35
 
36
  def audio_extraction(video_file):
37
- audio = extract_audio(input_path=video_file, output_path=video_file)
 
38
  return audio
39
 
40
 
 
34
 
35
 
36
  def audio_extraction(video_file):
37
+ video_file_bytes = os.fsencode(video_file)
38
+ audio = extract_audio(input_path=video_file_bytes, output_path=f"{video_file}.mp3")
39
  return audio
40
 
41