N.Achyuth Reddy commited on
Commit
a29f440
·
1 Parent(s): a6532a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -98,6 +98,9 @@ if wav_audio_data is not None:
98
  # Add assistant response to chat history
99
  st.session_state.messages.append({"role": "assistant", "content": response})
100
 
 
 
 
101
  # React to user input
102
  if prompt := textinput:
103
  # Display user message in chat message container
 
98
  # Add assistant response to chat history
99
  st.session_state.messages.append({"role": "assistant", "content": response})
100
 
101
+ # Convert response to audio
102
+ text_to_speech(response) # Call text_to_speech after getting the response
103
+
104
  # React to user input
105
  if prompt := textinput:
106
  # Display user message in chat message container