dermetfak commited on
Commit
890da38
1 Parent(s): 8c4038f
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ if (len(audio) != st.session_state['length']):
60
  st.session_state['length'] = len(audio)
61
  # wav_file = open("audio.mp3", "wb")
62
  # wav_file.write(audio.tobytes())
63
- transcript = openai.Audio.translate("whisper-1", audio.tobytes(), filename = '1.mp3')
64
  transcript["text"]
65
  st.session_state['vignette'] += transcript["text"]
66
 
 
60
  st.session_state['length'] = len(audio)
61
  # wav_file = open("audio.mp3", "wb")
62
  # wav_file.write(audio.tobytes())
63
+ transcript = openai.Audio.translate_raw("whisper-1", audio.tobytes(), filename = '1.mp3')
64
  transcript["text"]
65
  st.session_state['vignette'] += transcript["text"]
66