Spaces:
Sleeping
Sleeping
Upload tools.py
Browse files
tools.py
CHANGED
@@ -74,8 +74,18 @@ class YouTubeTranscriptTool(Tool):
|
|
74 |
Return the subtitles of a YouTube URL using youtube-transcript-api.
|
75 |
"""
|
76 |
inputs = {
|
77 |
-
"url": {
|
78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
output_type = "string"
|
81 |
|
|
|
74 |
Return the subtitles of a YouTube URL using youtube-transcript-api.
|
75 |
"""
|
76 |
inputs = {
|
77 |
+
"url": {
|
78 |
+
"type": "string",
|
79 |
+
"description": "YouTube URL",
|
80 |
+
"required": True
|
81 |
+
},
|
82 |
+
"lang": {
|
83 |
+
"type": "string",
|
84 |
+
"description": "Transcript language (default: en)",
|
85 |
+
"required": False,
|
86 |
+
"default": "en",
|
87 |
+
"nullable": True
|
88 |
+
}
|
89 |
}
|
90 |
output_type = "string"
|
91 |
|