huytofu92 commited on
Commit
3105d32
·
1 Parent(s): 6d2e403

Best desc for agent

Browse files
Files changed (2) hide show
  1. audio_tools.py +2 -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 audio_to_base64_from_file_path(file_path: str) -> str:
49
  """
50
- Convert an audio file to base64 format
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
- Get an image from a file
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
- Get a video from a file using cv2 and BytesIO
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: