DebasishDhal99 commited on
Commit
f531a85
·
1 Parent(s): b11f488

add free api key

Browse files
Files changed (1) hide show
  1. backend/audio_to_tgt.py +5 -1
backend/audio_to_tgt.py CHANGED
@@ -1,5 +1,9 @@
1
  from openai import OpenAI
2
- client = OpenAI()
 
 
 
 
3
 
4
  def src_audio_to_eng_translator(audio_file_input):
5
  transcription = client.audio.translations.create(
 
1
  from openai import OpenAI
2
+ import os
3
+
4
+ whisper_key = os.getenv("whisper-key")
5
+ client = OpenAI(api_key = whisper_key)
6
+
7
 
8
  def src_audio_to_eng_translator(audio_file_input):
9
  transcription = client.audio.translations.create(