Spaces:
Runtime error
Runtime error
Update tool.py
Browse files
tool.py
CHANGED
|
@@ -143,9 +143,9 @@ def analyze_excel_file(file_path: str, query: str) -> str:
|
|
| 143 |
|
| 144 |
def extract_video_id(youtube_url: str) -> str | None:
|
| 145 |
"""Extract the video ID from a YouTube URL.
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
"""
|
| 150 |
try:
|
| 151 |
parsed_url = urlparse(youtube_url)
|
|
|
|
| 143 |
|
| 144 |
def extract_video_id(youtube_url: str) -> str | None:
|
| 145 |
"""Extract the video ID from a YouTube URL.
|
| 146 |
+
|
| 147 |
+
Args:
|
| 148 |
+
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.be/VIDEO_ID .
|
| 149 |
"""
|
| 150 |
try:
|
| 151 |
parsed_url = urlparse(youtube_url)
|