DebasishDhal99 commited on
Commit
fb782db
1 Parent(s): 10cbb02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -15
app.py CHANGED
@@ -17,20 +17,6 @@ outputs = gr.outputs.Textbox(label="Result")
17
 
18
  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
- gr.Interface(
22
- fn=playlist_duration_calculator,
23
- inputs=[playlist_link_input, calculation_type_input],
24
- outputs=outputs,
25
- title=heading,
26
- description=description,
27
- examples=[
28
- ["https://www.youtube.com/playlist?list=PL-osiE80TeTsWmV9i9c58mdDCSskIFdDS", "Total Duration"],
29
- ["https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p", "Average Duration"],
30
- ],
31
- theme="compact",
32
- ).launch()
33
-
34
  second_heading = "YouTube Playlist Mismatch Calculator"
35
  second_description = "Enter two YouTube playlist links to compare their contents and find the mismatch."
36
 
@@ -48,4 +34,19 @@ gr.Interface(
48
  ["https://www.youtube.com/playlist?list=PL-osiE80TeTsWmV9i9c58mdDCSskIFdDS", "https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p"],
49
  ],
50
  theme="compact",
51
- ).launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  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
  second_heading = "YouTube Playlist Mismatch Calculator"
21
  second_description = "Enter two YouTube playlist links to compare their contents and find the mismatch."
22
 
 
34
  ["https://www.youtube.com/playlist?list=PL-osiE80TeTsWmV9i9c58mdDCSskIFdDS", "https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p"],
35
  ],
36
  theme="compact",
37
+ ).launch()
38
+
39
+
40
+ gr.Interface(
41
+ fn=playlist_duration_calculator,
42
+ inputs=[playlist_link_input, calculation_type_input],
43
+ outputs=outputs,
44
+ title=heading,
45
+ description=description,
46
+ examples=[
47
+ ["https://www.youtube.com/playlist?list=PL-osiE80TeTsWmV9i9c58mdDCSskIFdDS", "Total Duration"],
48
+ ["https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p", "Average Duration"],
49
+ ],
50
+ theme="compact",
51
+ ).launch()
52
+