audio processing (fix)
Browse files
agent.py
CHANGED
|
@@ -44,7 +44,7 @@ def visual_qa(image_url: str, question: str) -> str:
|
|
| 44 |
|
| 45 |
|
| 46 |
@tool
|
| 47 |
-
def transcribe_audio(audio_url):
|
| 48 |
"""
|
| 49 |
Provides functionality to perform audio transcription.
|
| 50 |
|
|
@@ -60,6 +60,7 @@ def transcribe_audio(audio_url):
|
|
| 60 |
file=requests.get(audio_url).content,
|
| 61 |
response_format="text",
|
| 62 |
)
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
class GAIAAgent:
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
@tool
|
| 47 |
+
def transcribe_audio(audio_url: str) -> str:
|
| 48 |
"""
|
| 49 |
Provides functionality to perform audio transcription.
|
| 50 |
|
|
|
|
| 60 |
file=requests.get(audio_url).content,
|
| 61 |
response_format="text",
|
| 62 |
)
|
| 63 |
+
return r.text
|
| 64 |
|
| 65 |
|
| 66 |
class GAIAAgent:
|