Spaces:
Running
Running
Update agent.py
Browse files
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):
|