SergeyO7 commited on
Commit
c0c99f4
·
verified ·
1 Parent(s): 620d9bb

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -2
agent.py CHANGED
@@ -72,12 +72,11 @@ def ImageAnalysisTool(image_path: str) -> str:
72
  return f"The image description: '{response}'"
73
 
74
  @tool
75
- def SpeechToTextTool(image_path: str) -> str:
76
  """Tool for converting an audio file to text using OpenAI Whisper.
77
  Args:
78
  audio_path (str): Path to audio file
79
  Returns:
80
-
81
  str: audio speech text
82
  """
83
  model = whisper.load_model("base")
 
72
  return f"The image description: '{response}'"
73
 
74
  @tool
75
+ def SpeechToTextTool(audio_path: str) -> str:
76
  """Tool for converting an audio file to text using OpenAI Whisper.
77
  Args:
78
  audio_path (str): Path to audio file
79
  Returns:
 
80
  str: audio speech text
81
  """
82
  model = whisper.load_model("base")