awacke1 commited on
Commit
fcf9a97
1 Parent(s): c6ef66c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -452,12 +452,14 @@ def main():
452
  openai.api_key = os.getenv('OPENAI_KEY')
453
  menu = ["txt", "htm", "xlsx", "csv", "md", "py"]
454
  choice = st.sidebar.selectbox("Output File Type:", menu)
455
- model_choice = st.sidebar.radio("Select Model:", ('gpt-3.5-turbo', 'gpt-3.5-turbo-0301'))
456
- filename = save_and_play_audio(audio_recorder)
457
- if filename is not None:
458
- transcription = transcribe_audio(key, filename, "whisper-1")
459
- st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
460
- filename = None
 
 
461
  user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)
462
  collength, colupload = st.columns([2,3]) # adjust the ratio as needed
463
  with collength:
 
452
  openai.api_key = os.getenv('OPENAI_KEY')
453
  menu = ["txt", "htm", "xlsx", "csv", "md", "py"]
454
  choice = st.sidebar.selectbox("Output File Type:", menu)
455
+ model_choice = st.sidebar.radio("Select Model:", ('gpt-3.5-turbo', 'gpt-3.5-turbo-0301
456
+
457
+ #filename = save_and_play_audio(audio_recorder)
458
+ #if filename is not None:
459
+ # transcription = transcribe_audio(key, filename, "whisper-1")
460
+ # st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
461
+ # filename = None
462
+
463
  user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)
464
  collength, colupload = st.columns([2,3]) # adjust the ratio as needed
465
  with collength: