Spaces:
Sleeping
Sleeping
fix tool
Browse files- community_tools.py +2 -2
community_tools.py
CHANGED
@@ -15,11 +15,11 @@ arxiv_tools = [Tool.from_langchain(tool) for tool in load_tools(["arxiv"])]
|
|
15 |
community_tools = [google_map_tool, wikipedia_tool, *arxiv_tools]
|
16 |
|
17 |
@tool
|
18 |
-
def get_youtube_transcript_from_url(video_url: str
|
19 |
"""
|
20 |
Get the transcript of a YouTube video
|
21 |
Args:
|
22 |
-
video_url: The URL of the YouTube video
|
23 |
Returns:
|
24 |
The transcript of the YouTube video as a string
|
25 |
"""
|
|
|
15 |
community_tools = [google_map_tool, wikipedia_tool, *arxiv_tools]
|
16 |
|
17 |
@tool
|
18 |
+
def get_youtube_transcript_from_url(video_url: str)->str:
|
19 |
"""
|
20 |
Get the transcript of a YouTube video
|
21 |
Args:
|
22 |
+
video_url: The URL of the YouTube video (e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ)
|
23 |
Returns:
|
24 |
The transcript of the YouTube video as a string
|
25 |
"""
|