Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,6 @@ def download_and_extract_audio(youtube_url):
|
|
33 |
Returns the path to the extracted audio file or None on failure.
|
34 |
"""
|
35 |
video_id = youtube_url.split("v=")[-1].split("&")[0] # Extract video ID
|
36 |
-
video_path = f"/tmp/{video_id}.mp4"
|
37 |
audio_path = f"/tmp/{video_id}.mp3"
|
38 |
|
39 |
# yt-dlp options to download best audio only
|
@@ -132,8 +131,7 @@ iface = gr.Interface(
|
|
132 |
),
|
133 |
allow_flagging="auto", # Allows users to flag results for review
|
134 |
examples=[
|
135 |
-
["https://www.youtube.com/watch?v=
|
136 |
-
# Add more examples if you have specific short, public videos in mind.
|
137 |
]
|
138 |
)
|
139 |
|
|
|
33 |
Returns the path to the extracted audio file or None on failure.
|
34 |
"""
|
35 |
video_id = youtube_url.split("v=")[-1].split("&")[0] # Extract video ID
|
|
|
36 |
audio_path = f"/tmp/{video_id}.mp3"
|
37 |
|
38 |
# yt-dlp options to download best audio only
|
|
|
131 |
),
|
132 |
allow_flagging="auto", # Allows users to flag results for review
|
133 |
examples=[
|
134 |
+
["https://www.youtube.com/watch?v=jNQXAC9IVRw"], # Updated example: A short educational video
|
|
|
135 |
]
|
136 |
)
|
137 |
|