dermetfak commited on
Commit
f6ef3e2
·
1 Parent(s): 1009064

another fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def get_completion(messages, model="gpt-3.5-turbo"):
15
 
16
  def transcribe(audio_path):
17
  audio_file = open(audio_path, "rb")
18
- transcript = openai.Audio.translate("whisper-1", audio_file)
19
  return transcript["text"]
20
 
21
 
 
15
 
16
  def transcribe(audio_path):
17
  audio_file = open(audio_path, "rb")
18
+ transcript = openai.Audio.translate_raw("whisper-1", audio_file, filename = '1.mp3')
19
  return transcript["text"]
20
 
21