Update app.py
Browse files
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 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
|
|
|
|
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:
|