Update app.py
Browse files
app.py
CHANGED
|
@@ -68,12 +68,12 @@ def download_images(image_urls: str) -> list:
|
|
| 68 |
print(f"Failed to download from {url}: {e}")
|
| 69 |
return images
|
| 70 |
|
| 71 |
-
@tool
|
| 72 |
-
def transcribe_audio(audio_path: str) -> str:
|
| 73 |
"""
|
| 74 |
Transcribe audio file using OpenAI Whisper API.
|
| 75 |
Args:
|
| 76 |
-
audio_path
|
| 77 |
Returns:
|
| 78 |
str : Transcription of the audio.
|
| 79 |
"""
|
|
|
|
| 68 |
print(f"Failed to download from {url}: {e}")
|
| 69 |
return images
|
| 70 |
|
| 71 |
+
@tool
|
| 72 |
+
def transcribe_audio(audio_path: str) -> str: # since they gave us OpenAI API credits, we can keep using it
|
| 73 |
"""
|
| 74 |
Transcribe audio file using OpenAI Whisper API.
|
| 75 |
Args:
|
| 76 |
+
audio_path: path to the audio file to be transcribed.
|
| 77 |
Returns:
|
| 78 |
str : Transcription of the audio.
|
| 79 |
"""
|