Spaces:
Runtime error
Runtime error
Update tool.py
Browse files
tool.py
CHANGED
|
@@ -163,8 +163,9 @@ def extract_video_id(youtube_url: str) -> str | None:
|
|
| 163 |
@tool
|
| 164 |
def get_youtube_transcript(youtube_url: str) -> str:
|
| 165 |
"""Returns the transcript of a YouTube video as plain text.
|
| 166 |
-
|
| 167 |
-
|
|
|
|
| 168 |
"""
|
| 169 |
video_id = extract_video_id(youtube_url)
|
| 170 |
if not video_id:
|
|
|
|
| 163 |
@tool
|
| 164 |
def get_youtube_transcript(youtube_url: str) -> str:
|
| 165 |
"""Returns the transcript of a YouTube video as plain text.
|
| 166 |
+
|
| 167 |
+
Args:
|
| 168 |
+
youtube_url (str): Url of the youtube video. Supports standard and shortened formats like https://www.youtube.com/watch?v=VIDEO_ID and https://youtu
|
| 169 |
"""
|
| 170 |
video_id = extract_video_id(youtube_url)
|
| 171 |
if not video_id:
|