Update app.py
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ def launch_bot():
|
|
102 |
st.session_state.messages.append(message)
|
103 |
|
104 |
# If assistant has most recently reaponded create audio of response
|
105 |
-
if st.session_state.messages[-1]["role"] == "assistant":
|
106 |
audio_result = st.button("Convert to Audio 🔊")
|
107 |
if audio_result:
|
108 |
#text-to-speech
|
|
|
102 |
st.session_state.messages.append(message)
|
103 |
|
104 |
# If assistant has most recently reaponded create audio of response
|
105 |
+
if st.session_state.messages[-1]["role"] == "assistant" or st.session_state_messafes[-1]["role"] == "content":
|
106 |
audio_result = st.button("Convert to Audio 🔊")
|
107 |
if audio_result:
|
108 |
#text-to-speech
|