Enrique Cardoza
commited on
Commit
·
bdead7d
1
Parent(s):
938f62b
update api_key param as None
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def transcribe_audio(audio_file, api_key):
|
|
114 |
except Exception as e:
|
115 |
return f"Error: {str(e)}"
|
116 |
|
117 |
-
def transcribe_audio_from_url(audio_url, api_key, request: gr.Request = None):
|
118 |
"""Transcribe audio/video files from a URL into text using Groq's Whisper model.
|
119 |
|
120 |
This tool converts spoken content from audio and video files into written text.
|
@@ -124,6 +124,8 @@ def transcribe_audio_from_url(audio_url, api_key, request: gr.Request = None):
|
|
124 |
audio_url: URL to an audio or video file to transcribe (http or https).
|
125 |
Supported formats: MP3, MP4, MPEG, MPGA, M4A, WAV, WebM, FLAC, OGG, AAC.
|
126 |
Maximum size: 25MB.
|
|
|
|
|
127 |
|
128 |
Returns:
|
129 |
A text transcript of the spoken content in the audio file.
|
|
|
114 |
except Exception as e:
|
115 |
return f"Error: {str(e)}"
|
116 |
|
117 |
+
def transcribe_audio_from_url(audio_url, api_key = None, request: gr.Request = None):
|
118 |
"""Transcribe audio/video files from a URL into text using Groq's Whisper model.
|
119 |
|
120 |
This tool converts spoken content from audio and video files into written text.
|
|
|
124 |
audio_url: URL to an audio or video file to transcribe (http or https).
|
125 |
Supported formats: MP3, MP4, MPEG, MPGA, M4A, WAV, WebM, FLAC, OGG, AAC.
|
126 |
Maximum size: 25MB.
|
127 |
+
api_key: Your Groq API key, required for authentication.
|
128 |
+
You can obtain this from https://console.groq.com/
|
129 |
|
130 |
Returns:
|
131 |
A text transcript of the spoken content in the audio file.
|