dindizz commited on
Commit
2089716
·
verified ·
1 Parent(s): d64ef5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def transcribe_audio(file_path):
15
  # Open the wav file
16
  try:
17
  audio_file = open(file_path, 'rb')
18
- response = openai.Audio.transcribe(
19
  model="whisper-1", # specify the appropriate model for transcription
20
  file=audio_file,
21
  language='ta' # specify 'ta' for Tamil language
 
15
  # Open the wav file
16
  try:
17
  audio_file = open(file_path, 'rb')
18
+ response = openai.audio.transcriptions.create(
19
  model="whisper-1", # specify the appropriate model for transcription
20
  file=audio_file,
21
  language='ta' # specify 'ta' for Tamil language