nanostuff commited on
Commit
5a6772d
·
1 Parent(s): b6b87c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -152,7 +152,7 @@ def transcribe(audio, text):
152
  os.rename(audio, audio_filename_with_extension)
153
  audio_file = open(audio_filename_with_extension, "rb")
154
  # Transcribe the audio file using the whisper-1 model
155
- transcript = openai.Audio.transcribe("whisper-1", audio_file)
156
 
157
  user_input = transcript.get("text", "") if isinstance(transcript, dict) else ""
158
 
 
152
  os.rename(audio, audio_filename_with_extension)
153
  audio_file = open(audio_filename_with_extension, "rb")
154
  # Transcribe the audio file using the whisper-1 model
155
+ transcript = openai.audio.transcribe.create("whisper-1", audio_file)
156
 
157
  user_input = transcript.get("text", "") if isinstance(transcript, dict) else ""
158