Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
c17fb15
1
Parent(s):
63c4c40
fix
Browse files
count_max_bird_species_tool.py
CHANGED
@@ -13,7 +13,7 @@ def count_max_bird_species_in_video(youtube_url: str) -> int:
|
|
13 |
- youtube_url: str: the URL of the YouTube video.
|
14 |
|
15 |
Returns:
|
16 |
-
-
|
17 |
"""
|
18 |
|
19 |
# frames = sample_youtube_video(youtube_url, 5)
|
@@ -22,7 +22,9 @@ def count_max_bird_species_in_video(youtube_url: str) -> int:
|
|
22 |
print('youtube video path: ' + youtube_video_in_base_64)
|
23 |
frames = read_list_from_txt(youtube_video_in_base_64)
|
24 |
|
25 |
-
|
|
|
|
|
26 |
|
27 |
def count_max_bird_species(framesStr: list[str]) -> int:
|
28 |
"""
|
|
|
13 |
- youtube_url: str: the URL of the YouTube video.
|
14 |
|
15 |
Returns:
|
16 |
+
- str: A sentence describing the maximum number of bird species detected in the YouTube video.
|
17 |
"""
|
18 |
|
19 |
# frames = sample_youtube_video(youtube_url, 5)
|
|
|
22 |
print('youtube video path: ' + youtube_video_in_base_64)
|
23 |
frames = read_list_from_txt(youtube_video_in_base_64)
|
24 |
|
25 |
+
max_species = count_max_bird_species(frames)
|
26 |
+
|
27 |
+
return f"The maximum number of bird species detected in the video is {max_species}."
|
28 |
|
29 |
def count_max_bird_species(framesStr: list[str]) -> int:
|
30 |
"""
|