Update app.py
Browse files
app.py
CHANGED
|
@@ -192,13 +192,17 @@ if prompt := st.chat_input("How can I help you today?"):
|
|
| 192 |
st.session_state.audio = False
|
| 193 |
|
| 194 |
with st.sidebar:
|
| 195 |
-
|
|
|
|
|
|
|
|
|
|
| 196 |
st.session_state.reference = True
|
| 197 |
-
generate_pdf()
|
| 198 |
-
|
|
|
|
| 199 |
generate_audio()
|
| 200 |
st.session_state.audio = True
|
| 201 |
-
|
| 202 |
st.session_state.messages.append({"role": "assistant", "content": full_response})
|
| 203 |
|
| 204 |
|
|
|
|
| 192 |
st.session_state.audio = False
|
| 193 |
|
| 194 |
with st.sidebar:
|
| 195 |
+
choice = st.radio("References and TTS",
|
| 196 |
+
["Reference", "Text-to-Speech"])
|
| 197 |
+
|
| 198 |
+
if choice == 'Reference':
|
| 199 |
st.session_state.reference = True
|
| 200 |
+
generate_pdf()
|
| 201 |
+
|
| 202 |
+
if choice == ':speaker:':
|
| 203 |
generate_audio()
|
| 204 |
st.session_state.audio = True
|
| 205 |
+
|
| 206 |
st.session_state.messages.append({"role": "assistant", "content": full_response})
|
| 207 |
|
| 208 |
|