Spaces:
Running
Running
Update app.py
Browse files
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}.
|
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="
|
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 |
)
|