John Liao commited on
Commit
6da4a9e
·
verified ·
1 Parent(s): 76cd265

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ except ImportError:
8
  import openai # Import the library after installing it
9
 
10
  def transcribe(filename,key):
11
- client = OpenAI(api_key = key)
12
  audio_file = open(filename, "rb")
13
  transcript_srt = client.audio.transcriptions.create(
14
  model="whisper-1",
 
8
  import openai # Import the library after installing it
9
 
10
  def transcribe(filename,key):
11
+ client = openai.OpenAI(api_key = key)
12
  audio_file = open(filename, "rb")
13
  transcript_srt = client.audio.transcriptions.create(
14
  model="whisper-1",