Spaces:
Sleeping
Sleeping
Update tools/YouTubeTool.py
Browse files- tools/YouTubeTool.py +1 -1
tools/YouTubeTool.py
CHANGED
|
@@ -5,7 +5,7 @@ class YouTubeTool(Tool):
|
|
| 5 |
name = "youtube reader"
|
| 6 |
description= "Fetches the transcript for the youtube video url"
|
| 7 |
inputs= {"video_url": {"type": "string"}, "description": "URL or ID of the Youtube video"}
|
| 8 |
-
|
| 9 |
|
| 10 |
def forward(self, video_url: str) -> str:
|
| 11 |
video_id = video_url.split("v=")[-1] # basic extraction
|
|
|
|
| 5 |
name = "youtube reader"
|
| 6 |
description= "Fetches the transcript for the youtube video url"
|
| 7 |
inputs= {"video_url": {"type": "string"}, "description": "URL or ID of the Youtube video"}
|
| 8 |
+
output_type = "string"
|
| 9 |
|
| 10 |
def forward(self, video_url: str) -> str:
|
| 11 |
video_id = video_url.split("v=")[-1] # basic extraction
|