Update app.py
Browse files
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(
|
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)
|