fixed tool parsing issue in tools.py
Browse files
tools.py
CHANGED
|
@@ -347,9 +347,9 @@ def transcribe_audio_file(file_path: str) -> str:
|
|
| 347 |
@tool(parse_docstring=True)
|
| 348 |
def question_youtube_video(video_url: str, query: str) -> str:
|
| 349 |
"""
|
| 350 |
-
|
| 351 |
-
The video is streamed and one frame is captured every
|
| 352 |
-
|
| 353 |
The final answer is aggregated from the answers to each frame.
|
| 354 |
DOES NOT USE AUDIO! ONLY FRAMES FROM THE VIDEO ARE USED TO ANSWER THE QUESTION.
|
| 355 |
|
|
|
|
| 347 |
@tool(parse_docstring=True)
|
| 348 |
def question_youtube_video(video_url: str, query: str) -> str:
|
| 349 |
"""
|
| 350 |
+
Answers a question about a YouTube video.
|
| 351 |
+
The video is streamed and one frame is captured every x seconds, where x is declared in the environment settings.
|
| 352 |
+
Captured frames are sent sequentially to a multimodal model to answer the question about the video.
|
| 353 |
The final answer is aggregated from the answers to each frame.
|
| 354 |
DOES NOT USE AUDIO! ONLY FRAMES FROM THE VIDEO ARE USED TO ANSWER THE QUESTION.
|
| 355 |
|