Update app.py
Browse files
app.py
CHANGED
|
@@ -282,15 +282,25 @@ if prompt := st.chat_input("How can I help you today?"):
|
|
| 282 |
sound_output = st.empty()
|
| 283 |
|
| 284 |
# Create a button to display the image
|
| 285 |
-
if st.button("
|
| 286 |
-
|
| 287 |
-
|
| 288 |
|
| 289 |
-
# Create a button to play the sound
|
| 290 |
-
if st.button(":speaker:"):
|
| 291 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
generate_audio()
|
| 293 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
st.session_state.messages.append({"role": "assistant", "content": full_response})
|
| 295 |
|
| 296 |
|
|
|
|
| 282 |
sound_output = st.empty()
|
| 283 |
|
| 284 |
# Create a button to display the image
|
| 285 |
+
# if st.button("Reference"):
|
| 286 |
+
# image_output.clear()
|
| 287 |
+
# generate_pdf()
|
| 288 |
|
| 289 |
+
# # Create a button to play the sound
|
| 290 |
+
# if st.button(":speaker:"):
|
| 291 |
+
# sound_output.clear()
|
| 292 |
+
# generate_audio()
|
| 293 |
+
|
| 294 |
+
|
| 295 |
+
on_audio = st.toggle(':speaker:')
|
| 296 |
+
on_ref = st.toggle('Reference')
|
| 297 |
+
if on_audio:
|
| 298 |
generate_audio()
|
| 299 |
|
| 300 |
+
if on_ref:
|
| 301 |
+
generate_pdf()
|
| 302 |
+
|
| 303 |
+
|
| 304 |
st.session_state.messages.append({"role": "assistant", "content": full_response})
|
| 305 |
|
| 306 |
|