awacke1 commited on
Commit
ca1861d
1 Parent(s): 3aa3963

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -348,7 +348,7 @@ def main():
348
  model_choice = st.sidebar.radio("Select Model:", ('gpt-3.5-turbo', 'gpt-3.5-turbo-0301'))
349
  filename = save_and_play_audio(audio_recorder)
350
  if filename is not None:
351
- transcription = transcribe_audio(openai.api_key, filename, "whisper-1")
352
  st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
353
  filename = None
354
  user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)
 
348
  model_choice = st.sidebar.radio("Select Model:", ('gpt-3.5-turbo', 'gpt-3.5-turbo-0301'))
349
  filename = save_and_play_audio(audio_recorder)
350
  if filename is not None:
351
+ transcription = transcribe_audio(key, filename, "whisper-1")
352
  st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
353
  filename = None
354
  user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)