Spaces:
Build error
Build error
Commit
·
cdd2ded
1
Parent(s):
c05a183
Update app.py
Browse files
app.py
CHANGED
|
@@ -201,7 +201,7 @@ def main():
|
|
| 201 |
|
| 202 |
user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)
|
| 203 |
|
| 204 |
-
with st.sidebar.expander("
|
| 205 |
# Audio, transcribe, GPT:
|
| 206 |
filename = save_and_play_audio(audio_recorder)
|
| 207 |
if filename is not None:
|
|
@@ -217,7 +217,8 @@ def main():
|
|
| 217 |
st.write('Reasoning with your inputs...')
|
| 218 |
response = chat_with_model(user_prompt, ''.join(list(document_sections)))
|
| 219 |
st.write('Response:')
|
| 220 |
-
st.
|
|
|
|
| 221 |
filename = generate_filename(user_prompt, choice)
|
| 222 |
create_file(filename, user_prompt, response)
|
| 223 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|
|
|
|
| 201 |
|
| 202 |
user_prompt = st.text_area("Enter prompts, instructions & questions:", '', height=100)
|
| 203 |
|
| 204 |
+
with st.sidebar.expander("Recording Options", expanded=False):
|
| 205 |
# Audio, transcribe, GPT:
|
| 206 |
filename = save_and_play_audio(audio_recorder)
|
| 207 |
if filename is not None:
|
|
|
|
| 217 |
st.write('Reasoning with your inputs...')
|
| 218 |
response = chat_with_model(user_prompt, ''.join(list(document_sections)))
|
| 219 |
st.write('Response:')
|
| 220 |
+
st.text_area(response)
|
| 221 |
+
#st.write(response)
|
| 222 |
filename = generate_filename(user_prompt, choice)
|
| 223 |
create_file(filename, user_prompt, response)
|
| 224 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|