DebasishDhal99 commited on
Commit
36f134b
1 Parent(s): fb782db

Update app.py

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