DebasishDhal99 commited on
Commit
880e208
1 Parent(s): b00a31d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,7 +22,7 @@ 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,
@@ -50,7 +50,7 @@ playlist_link_1_input = gr.inputs.Textbox(label="Playlist Link 1")
50
  playlist_link_2_input = gr.inputs.Textbox(label="Playlist Link 2")
51
  output_options = gr.inputs.Radio(["id", "link", "name"], label="Output Options")
52
 
53
- interface2 = gr.Interface(
54
  fn=playlist_mismatch_calculator,
55
  inputs=[playlist_link_1_input, playlist_link_2_input, output_options],
56
  outputs=mismatch_outputs,
@@ -66,6 +66,6 @@ interface2 = gr.Interface(
66
  # interface1.launch()
67
  # interface2.launch()
68
 
69
- combinedinterface = gr.TabbedInterface([interface1,interface2],['Playlist Total and Average Duration', 'Playlist Mismatch'])
70
 
71
  combinedinterface.launch()
 
22
  description = "Enter a YouTube playlist link and choose the calculation type to calculate its total duration or average duration."
23
 
24
 
25
+ duration_interface = gr.Interface(
26
  fn=playlist_duration_calculator,
27
  inputs=[playlist_link_input, calculation_type_input],
28
  outputs=outputs,
 
50
  playlist_link_2_input = gr.inputs.Textbox(label="Playlist Link 2")
51
  output_options = gr.inputs.Radio(["id", "link", "name"], label="Output Options")
52
 
53
+ mismatch_interface = gr.Interface(
54
  fn=playlist_mismatch_calculator,
55
  inputs=[playlist_link_1_input, playlist_link_2_input, output_options],
56
  outputs=mismatch_outputs,
 
66
  # interface1.launch()
67
  # interface2.launch()
68
 
69
+ combinedinterface = gr.TabbedInterface([duration_interface,mismatch_interface],['Playlist Total and Average Duration', 'Playlist Mismatch'])
70
 
71
  combinedinterface.launch()