fixed tool parsing issue in tools.py
Browse files
tools.py
CHANGED
|
@@ -347,10 +347,11 @@ 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 `capture_interval_sec` seconds.
|
| 352 |
These 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 |
|
| 355 |
Args:
|
| 356 |
video_url (str): The URL of the video to capture frames from.
|
|
|
|
| 347 |
@tool(parse_docstring=True)
|
| 348 |
def question_youtube_video(video_url: str, query: str) -> str:
|
| 349 |
"""
|
| 350 |
+
This function returns an answer to a question about a YouTube video.
|
| 351 |
The video is streamed and one frame is captured every `capture_interval_sec` seconds.
|
| 352 |
These 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 |
|
| 356 |
Args:
|
| 357 |
video_url (str): The URL of the video to capture frames from.
|