Update app.py
Browse files
app.py
CHANGED
|
@@ -191,12 +191,13 @@ if prompt := st.chat_input("How can I help you today?"):
|
|
| 191 |
if "audio" not in st.session_state:
|
| 192 |
st.session_state.audio = False
|
| 193 |
|
| 194 |
-
|
| 195 |
-
st.session_state.reference
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
|
|
|
| 200 |
|
| 201 |
st.session_state.messages.append({"role": "assistant", "content": full_response})
|
| 202 |
|
|
|
|
| 191 |
if "audio" not in st.session_state:
|
| 192 |
st.session_state.audio = False
|
| 193 |
|
| 194 |
+
with st.sidebar:
|
| 195 |
+
if st.button('Reference') or st.session_state.reference:
|
| 196 |
+
st.session_state.reference = True
|
| 197 |
+
generate_pdf()
|
| 198 |
+
if st.button(':speaker:') or st.session_state.audio:
|
| 199 |
+
generate_audio()
|
| 200 |
+
st.session_state.audio = True
|
| 201 |
|
| 202 |
st.session_state.messages.append({"role": "assistant", "content": full_response})
|
| 203 |
|