Blane187 commited on
Commit
06a6b1b
·
verified ·
1 Parent(s): 90be0a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ def download_video(url):
11
  info_dict = ydl.extract_info(url, download=True)
12
  video_title = info_dict.get('title', None)
13
  file_extension = info_dict.get('ext', None)
14
- file_name = f"{video_title}.{file_extension}"
15
  file_path = f"downloads/{file_name}"
16
 
17
  return file_path
@@ -20,7 +20,7 @@ def download_video(url):
20
  iface = gr.Interface(
21
  fn=download_video,
22
  inputs="text",
23
- outputs="file",
24
  title="Video Downloader",
25
  description="Enter the URL of the video you want to download."
26
  )
 
11
  info_dict = ydl.extract_info(url, download=True)
12
  video_title = info_dict.get('title', None)
13
  file_extension = info_dict.get('ext', None)
14
+ file_name = f"{video_title}.wav"
15
  file_path = f"downloads/{file_name}"
16
 
17
  return file_path
 
20
  iface = gr.Interface(
21
  fn=download_video,
22
  inputs="text",
23
+ outputs="audio",
24
  title="Video Downloader",
25
  description="Enter the URL of the video you want to download."
26
  )