SergeyO7 commited on
Commit
e31dd8e
·
verified ·
1 Parent(s): 8706eb6

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -2
agent.py CHANGED
@@ -179,8 +179,7 @@ class SpeechToTextTool(Tool):
179
  def forward(self, audio_path: str) -> str:
180
  if not os.path.exists(audio_path):
181
  return f"Error: File not found at {audio_path}"
182
- result = self.model.
183
- transcribe(audio_path)
184
  return result.get("text", "")
185
 
186
  class ExcelReaderTool(Tool):
 
179
  def forward(self, audio_path: str) -> str:
180
  if not os.path.exists(audio_path):
181
  return f"Error: File not found at {audio_path}"
182
+ result = self.model.transcribe(audio_path)
 
183
  return result.get("text", "")
184
 
185
  class ExcelReaderTool(Tool):