lyimo commited on
Commit
b95fc80
1 Parent(s): b67d22c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ openai.api_key = os.getenv("OPENAI_API_KEY")
8
 
9
  def transcribe(audio):
10
  with open(audio, "rb") as audio_file:
11
- transcript = openai.Audio.transcribe(model="whisper-1", audio_file)
12
  return transcript["text"]
13
 
14
  def generate_response(transcribed_text):
 
8
 
9
  def transcribe(audio):
10
  with open(audio, "rb") as audio_file:
11
+ transcript = openai.Audio.transcribe("whisper-1", audio_file)
12
  return transcript["text"]
13
 
14
  def generate_response(transcribed_text):