Spaces:
Running
Running
DebasishDhal99
commited on
Commit
•
4f0687a
1
Parent(s):
73db5a0
Update playlist_duration.py
Browse filesEliminating the gradio lines from here
- playlist_duration.py +0 -18
playlist_duration.py
CHANGED
@@ -149,21 +149,3 @@ def playlist_duration_func(youtubelink,videoid=False):
|
|
149 |
print("Total no. of videos is = ",len(vid_ids))
|
150 |
return str(total_duration)
|
151 |
|
152 |
-
heading = "YouTube Playlist Duration Calculator"
|
153 |
-
description = "Enter a YouTube playlist link and calculate its total duration."
|
154 |
-
|
155 |
-
inputs = gr.inputs.Textbox(label="Playlist Link")
|
156 |
-
outputs = gr.outputs.Textbox(label="Total Duration")
|
157 |
-
|
158 |
-
gr.Interface(
|
159 |
-
fn=playlist_duration_func,
|
160 |
-
inputs=inputs,
|
161 |
-
outputs=outputs,
|
162 |
-
title=heading,
|
163 |
-
description=description,
|
164 |
-
examples=[
|
165 |
-
["https://www.youtube.com/playlist?list=PL-osiE80TeTsWmV9i9c58mdDCSskIFdDS"],
|
166 |
-
["https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p"],
|
167 |
-
],
|
168 |
-
theme="compact",
|
169 |
-
).launch()
|
|
|
149 |
print("Total no. of videos is = ",len(vid_ids))
|
150 |
return str(total_duration)
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|