lyimo commited on
Commit
b67d22c
·
1 Parent(s): 463c886

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", language="sw", audio_file=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(model="whisper-1", audio_file)
12
  return transcript["text"]
13
 
14
  def generate_response(transcribed_text):