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