ygauravyy commited on
Commit
fa3c9b4
·
verified ·
1 Parent(s): 587ebe6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -101,7 +101,7 @@ def predict(audio_file_pth, agree):
101
  # Transcribe audio to text using OpenAI Whisper
102
  try:
103
  with open(speaker_wav, 'rb') as audio_file:
104
- transcription_response = openai.Audio.transcribe(
105
  model="whisper-1",
106
  file=audio_file,
107
  response_format='text'
 
101
  # Transcribe audio to text using OpenAI Whisper
102
  try:
103
  with open(speaker_wav, 'rb') as audio_file:
104
+ transcription_response = openai.audio.transcriptions.create(
105
  model="whisper-1",
106
  file=audio_file,
107
  response_format='text'