Spaces:
son9john
/
Runtime error

son9john commited on
Commit
492ae75
·
1 Parent(s): 00212f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def transcribe(audio, text):
32
  # Transcribe the audio if provided
33
  if audio is not None:
34
  audio_file = open(audio, "rb")
35
- transcript = openai.Audio.transcribe("whisper-1", audio_file, language="en")
36
 
37
  # Tokenize the text input
38
  if text is not None:
 
32
  # Transcribe the audio if provided
33
  if audio is not None:
34
  audio_file = open(audio, "rb")
35
+ transcript = whisper.Audio.transcribe("whisper-1", audio_file, language="en")
36
 
37
  # Tokenize the text input
38
  if text is not None: