lodhrangpt commited on
Commit
c0b6ad1
·
verified ·
1 Parent(s): e92e81f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,10 +21,10 @@ def transcribe(audio_path):
21
  with open(audio_path, "rb") as audio_file:
22
  audio_data = audio_file.read()
23
 
24
- groq_api_endpoint = "https://api.groq.com/openai/v1/audio/transcriptions"
25
  headers = {
26
- "Authorization": " Bearer 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", # Replace with your actual API key
27
- }
28
  files = {
29
  'file': ('audio.wav', audio_data, 'audio/wav'),
30
  }
 
21
  with open(audio_path, "rb") as audio_file:
22
  audio_data = audio_file.read()
23
 
24
+ groq_api_endpoint = "https://api.groq.com/openai/v1/audio/transcriptions"
25
  headers = {
26
+ "Authorization": "Bearer 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", # Replace with your actual API key
27
+
28
  files = {
29
  'file': ('audio.wav', audio_data, 'audio/wav'),
30
  }