Spaces:
Running
Running
DebasishDhal99
commited on
Commit
·
8bbeb85
1
Parent(s):
195bb66
Update app.py
Browse files
app.py
CHANGED
@@ -14,26 +14,26 @@ def playlist_duration_calculator(playlist_link, calculation_type):
|
|
14 |
result = playlist_average_duration_func(playlist_link)
|
15 |
return f"Average Duration: {result}"
|
16 |
|
17 |
-
playlist_link_input = gr.inputs.Textbox(label="Playlist Link")
|
18 |
-
calculation_type_input = gr.inputs.Radio(["Total Duration", "Average Duration"], label="What to calculate?")
|
19 |
-
outputs = gr.outputs.Textbox(label="Result")
|
20 |
-
|
21 |
-
heading = "YouTube Playlist Duration Calculator"
|
22 |
-
description = "Enter a YouTube playlist link and choose the calculation type to calculate its total duration or average duration."
|
23 |
-
|
24 |
-
|
25 |
-
interface1 = gr.Interface(
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
)
|
37 |
|
38 |
second_heading = "YouTube Playlist Mismatch Calculator"
|
39 |
second_description = "Enter two YouTube playlist links to compare their contents and find the mismatch."
|
|
|
14 |
result = playlist_average_duration_func(playlist_link)
|
15 |
return f"Average Duration: {result}"
|
16 |
|
17 |
+
# playlist_link_input = gr.inputs.Textbox(label="Playlist Link")
|
18 |
+
# calculation_type_input = gr.inputs.Radio(["Total Duration", "Average Duration"], label="What to calculate?")
|
19 |
+
# outputs = gr.outputs.Textbox(label="Result")
|
20 |
+
|
21 |
+
# heading = "YouTube Playlist Duration Calculator"
|
22 |
+
# description = "Enter a YouTube playlist link and choose the calculation type to calculate its total duration or average duration."
|
23 |
+
|
24 |
+
|
25 |
+
# interface1 = gr.Interface(
|
26 |
+
# fn=playlist_duration_calculator,
|
27 |
+
# inputs=[playlist_link_input, calculation_type_input],
|
28 |
+
# outputs=outputs,
|
29 |
+
# title=heading,
|
30 |
+
# description=description,
|
31 |
+
# examples=[
|
32 |
+
# ["https://www.youtube.com/playlist?list=PL-osiE80TeTsWmV9i9c58mdDCSskIFdDS", "Total Duration"],
|
33 |
+
# ["https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p", "Average Duration"],
|
34 |
+
# ],
|
35 |
+
# theme="compact",
|
36 |
+
# )
|
37 |
|
38 |
second_heading = "YouTube Playlist Mismatch Calculator"
|
39 |
second_description = "Enter two YouTube playlist links to compare their contents and find the mismatch."
|