SergeyO7 commited on
Commit
b2ae908
·
verified ·
1 Parent(s): 2557a3c

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +3 -2
agent.py CHANGED
@@ -72,12 +72,13 @@ def ImageAnalysisTool(image_path: str) -> str:
72
  return f"The image description: '{response}'"
73
 
74
  @tool
75
- def SpeechToTextTool(Tool):
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 text
 
81
  """
82
  model = whisper.load_model("base")
83
 
 
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")
84