Spaces:
Sleeping
Sleeping
Update tools/YouTubeTool.py
Browse files- tools/YouTubeTool.py +2 -2
tools/YouTubeTool.py
CHANGED
|
@@ -2,9 +2,9 @@ from smolagents import Tool
|
|
| 2 |
from youtube_transcript_api import YouTubeTranscriptApi
|
| 3 |
|
| 4 |
class YouTubeTool(Tool):
|
| 5 |
-
name = "
|
| 6 |
description= "Fetches the transcript for the youtube video url"
|
| 7 |
-
inputs= {"video_url": {"type": "string"
|
| 8 |
output_type = "string"
|
| 9 |
|
| 10 |
def forward(self, video_url: str) -> str:
|
|
|
|
| 2 |
from youtube_transcript_api import YouTubeTranscriptApi
|
| 3 |
|
| 4 |
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 |
output_type = "string"
|
| 9 |
|
| 10 |
def forward(self, video_url: str) -> str:
|