Spaces:
Running
Running
DebasishDhal99
commited on
Commit
•
c632686
1
Parent(s):
36f134b
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ heading = "YouTube Playlist Duration Calculator"
|
|
19 |
description = "Enter a YouTube playlist link and choose the calculation type to calculate its total duration or average duration."
|
20 |
|
21 |
|
22 |
-
gr.Interface(
|
23 |
fn=playlist_duration_calculator,
|
24 |
inputs=[playlist_link_input, calculation_type_input],
|
25 |
outputs=outputs,
|
@@ -30,7 +30,7 @@ gr.Interface(
|
|
30 |
["https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p", "Average Duration"],
|
31 |
],
|
32 |
theme="compact",
|
33 |
-
)
|
34 |
|
35 |
second_heading = "YouTube Playlist Mismatch Calculator"
|
36 |
second_description = "Enter two YouTube playlist links to compare their contents and find the mismatch."
|
@@ -39,7 +39,7 @@ def playlist_mismatch_calculator(playlist_link_1, playlist_link_2):
|
|
39 |
result = playlist_mismatch_func(playlist_link_1, playlist_link_2)
|
40 |
return f"Mismatch Result: {result}"
|
41 |
|
42 |
-
gr.Interface(
|
43 |
fn=playlist_mismatch_calculator,
|
44 |
inputs=[playlist_link_1_input, playlist_link_2_input],
|
45 |
outputs=mismatch_outputs,
|
@@ -49,5 +49,8 @@ gr.Interface(
|
|
49 |
["https://www.youtube.com/playlist?list=PL-osiE80TeTsWmV9i9c58mdDCSskIFdDS", "https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p"],
|
50 |
],
|
51 |
theme="compact",
|
52 |
-
)
|
|
|
|
|
|
|
53 |
|
|
|
19 |
description = "Enter a YouTube playlist link and choose the calculation type to calculate its total duration or average duration."
|
20 |
|
21 |
|
22 |
+
interface1 = gr.Interface(
|
23 |
fn=playlist_duration_calculator,
|
24 |
inputs=[playlist_link_input, calculation_type_input],
|
25 |
outputs=outputs,
|
|
|
30 |
["https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p", "Average Duration"],
|
31 |
],
|
32 |
theme="compact",
|
33 |
+
)
|
34 |
|
35 |
second_heading = "YouTube Playlist Mismatch Calculator"
|
36 |
second_description = "Enter two YouTube playlist links to compare their contents and find the mismatch."
|
|
|
39 |
result = playlist_mismatch_func(playlist_link_1, playlist_link_2)
|
40 |
return f"Mismatch Result: {result}"
|
41 |
|
42 |
+
interface2 = gr.Interface(
|
43 |
fn=playlist_mismatch_calculator,
|
44 |
inputs=[playlist_link_1_input, playlist_link_2_input],
|
45 |
outputs=mismatch_outputs,
|
|
|
49 |
["https://www.youtube.com/playlist?list=PL-osiE80TeTsWmV9i9c58mdDCSskIFdDS", "https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p"],
|
50 |
],
|
51 |
theme="compact",
|
52 |
+
)
|
53 |
+
|
54 |
+
interface_1.launch()
|
55 |
+
interface_2.launch()
|
56 |
|