tensorkelechi commited on
Commit
924c916
·
verified ·
1 Parent(s): e59a6ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -23,6 +23,7 @@ st.set_page_config(
23
 
24
  def youtube_video_downloader(url):
25
  yt_vid = YouTube(url)
 
26
  title = yt_vid.title
27
  vid_dld = (
28
  yt_vid.streams.filter(progressive=True, file_extension="mp4")
@@ -36,7 +37,7 @@ def youtube_video_downloader(url):
36
 
37
  def audio_extraction(video_file, output_format):
38
  audio = extract_audio(
39
- input_path=video_file, output_path=f"{video_file.name}.mp3", output_format=output_format
40
  )
41
  return audio
42
 
 
23
 
24
  def youtube_video_downloader(url):
25
  yt_vid = YouTube(url)
26
+
27
  title = yt_vid.title
28
  vid_dld = (
29
  yt_vid.streams.filter(progressive=True, file_extension="mp4")
 
37
 
38
  def audio_extraction(video_file, output_format):
39
  audio = extract_audio(
40
+ input_path=video_file, output_path=f"{video_file}.mp3", output_format=output_format
41
  )
42
  return audio
43