awacke1 commited on
Commit
447e6ee
·
1 Parent(s): 1caa57f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -240,6 +240,7 @@ def main():
240
  if filename is not None:
241
  transcription = transcribe_audio(openai.api_key, filename, "whisper-1")
242
  st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
 
243
 
244
  # prompt interfaces
245
  user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)
 
240
  if filename is not None:
241
  transcription = transcribe_audio(openai.api_key, filename, "whisper-1")
242
  st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
243
+ filename=None # since transcription is finished next time just use the saved transcript
244
 
245
  # prompt interfaces
246
  user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)