Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def transcribe(audio_path):
|
|
23 |
|
24 |
groq_api_endpoint = "https://api.groq.com/openai/v1/audio/transcriptions"
|
25 |
headers = {
|
26 |
-
"Authorization": "Bearer api_key",
|
27 |
}
|
28 |
files = {
|
29 |
'file': ('audio.wav', audio_data, 'audio/wav'),
|
|
|
23 |
|
24 |
groq_api_endpoint = "https://api.groq.com/openai/v1/audio/transcriptions"
|
25 |
headers = {
|
26 |
+
"Authorization": f"Bearer {api_key}", # Replace with your actual API key
|
27 |
}
|
28 |
files = {
|
29 |
'file': ('audio.wav', audio_data, 'audio/wav'),
|