Spaces:
Running
Running
DebasishDhal99
commited on
Commit
•
dae8a39
1
Parent(s):
9244222
Update app.py
Browse filesCorrecting the function names.
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 =
|
8 |
return f"Total Duration: {result}"
|
9 |
elif calculation_type == "Average Duration":
|
10 |
-
result =
|
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")
|