Spaces:
Sleeping
Sleeping
Best desc for agent
Browse files- audio_tools.py +2 -2
- vlm_tools.py +2 -2
audio_tools.py
CHANGED
@@ -45,9 +45,9 @@ class TranscribeAudioTool(Tool):
|
|
45 |
transcribe_audio_tool = TranscribeAudioTool()
|
46 |
|
47 |
@tool
|
48 |
-
def
|
49 |
"""
|
50 |
-
|
51 |
Args:
|
52 |
file_path: Path to the audio file (should be in mp3 format)
|
53 |
Returns:
|
|
|
45 |
transcribe_audio_tool = TranscribeAudioTool()
|
46 |
|
47 |
@tool
|
48 |
+
def get_audio_from_file_path(file_path: str) -> str:
|
49 |
"""
|
50 |
+
Load an audio file from a file path and convert it to a base64 string
|
51 |
Args:
|
52 |
file_path: Path to the audio file (should be in mp3 format)
|
53 |
Returns:
|
vlm_tools.py
CHANGED
@@ -127,7 +127,7 @@ def extract_images_from_video(video_path: str) -> list:
|
|
127 |
@tool
|
128 |
def get_image_from_file_path(file_path: str)->str:
|
129 |
"""
|
130 |
-
|
131 |
Args:
|
132 |
file_path: The path to the file
|
133 |
Returns:
|
@@ -196,7 +196,7 @@ def get_image_from_file_path(file_path: str)->str:
|
|
196 |
@tool
|
197 |
def get_video_from_file_path(file_path: str)->str:
|
198 |
"""
|
199 |
-
|
200 |
Args:
|
201 |
file_path: The path to the file
|
202 |
Returns:
|
|
|
127 |
@tool
|
128 |
def get_image_from_file_path(file_path: str)->str:
|
129 |
"""
|
130 |
+
Load an image from a file path and convert it to a base64 string
|
131 |
Args:
|
132 |
file_path: The path to the file
|
133 |
Returns:
|
|
|
196 |
@tool
|
197 |
def get_video_from_file_path(file_path: str)->str:
|
198 |
"""
|
199 |
+
Load a video from a file path and convert it to a base64 string
|
200 |
Args:
|
201 |
file_path: The path to the file
|
202 |
Returns:
|