Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
9529a47
1
Parent(s):
5617edc
fix
Browse files- count_max_bird_species_tool.py +2 -2
- langchain_agent.py +1 -1
count_max_bird_species_tool.py
CHANGED
@@ -7,13 +7,13 @@ from utils import decode_base64_to_frame
|
|
7 |
@tool
|
8 |
def count_max_bird_species_in_video(youtube_url: str) -> int:
|
9 |
"""
|
10 |
-
Count the maximum number of bird species in a YouTube video.
|
11 |
|
12 |
Args:
|
13 |
- youtube_url: str: the URL of the YouTube video.
|
14 |
|
15 |
Returns:
|
16 |
-
- int: The maximum number of bird species detected in the YouTube video.
|
17 |
"""
|
18 |
|
19 |
# frames = sample_youtube_video(youtube_url, 5)
|
|
|
7 |
@tool
|
8 |
def count_max_bird_species_in_video(youtube_url: str) -> int:
|
9 |
"""
|
10 |
+
Count the maximum number of bird species to be on camera simultaneously in a YouTube video.
|
11 |
|
12 |
Args:
|
13 |
- youtube_url: str: the URL of the YouTube video.
|
14 |
|
15 |
Returns:
|
16 |
+
- int: The maximum number of bird species detected to be on camera simultaneously in the YouTube video.
|
17 |
"""
|
18 |
|
19 |
# frames = sample_youtube_video(youtube_url, 5)
|
langchain_agent.py
CHANGED
@@ -23,7 +23,7 @@ class LangChainAgent:
|
|
23 |
llm = ChatGoogleGenerativeAI(
|
24 |
model=constants.MODEL,
|
25 |
api_key=constants.API_KEY,
|
26 |
-
temperature=0.
|
27 |
timeout=20)
|
28 |
|
29 |
tools = [
|
|
|
23 |
llm = ChatGoogleGenerativeAI(
|
24 |
model=constants.MODEL,
|
25 |
api_key=constants.API_KEY,
|
26 |
+
temperature=0.7,
|
27 |
timeout=20)
|
28 |
|
29 |
tools = [
|