DebasishDhal99 commited on
Commit
dae8a39
1 Parent(s): 9244222

Update app.py

Browse files

Correcting the function names.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,10 +4,10 @@ from average_duration import playlist_average_duration_func
4
 
5
  def playlist_duration_calculator(playlist_link, calculation_type):
6
  if calculation_type == "Total Duration":
7
- result = total_duration_func(playlist_link)
8
  return f"Total Duration: {result}"
9
  elif calculation_type == "Average Duration":
10
- result = average_duration_func(playlist_link)
11
  return f"Average Duration: {result}"
12
 
13
  playlist_link_input = gr.inputs.Textbox(label="Playlist Link")
 
4
 
5
  def playlist_duration_calculator(playlist_link, calculation_type):
6
  if calculation_type == "Total Duration":
7
+ result = playlist_duration_func(playlist_link)
8
  return f"Total Duration: {result}"
9
  elif calculation_type == "Average Duration":
10
+ result = playlist_average_duration_func(playlist_link)
11
  return f"Average Duration: {result}"
12
 
13
  playlist_link_input = gr.inputs.Textbox(label="Playlist Link")