lodhrangpt commited on
Commit
8666b65
·
verified ·
1 Parent(s): a25fac4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", # Replace with your actual 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'),