Walterchamy commited on
Commit
919f324
·
1 Parent(s): 3237192

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -96,6 +96,7 @@ def main():
96
  with st.spinner("Generating Response...."):
97
  response_text = generate_response(user_input)
98
  st.write("Response:", response_text)
 
99
 
100
  if __name__ == '__main__':
101
  main()
@@ -110,4 +111,4 @@ def text_to_speech(text):
110
  st.audio("output.mp3")
111
 
112
  # Call the text-to-speech function with some text
113
- text_to_speech("Response:", response_text)
 
96
  with st.spinner("Generating Response...."):
97
  response_text = generate_response(user_input)
98
  st.write("Response:", response_text)
99
+ text_to_speech(response_text)
100
 
101
  if __name__ == '__main__':
102
  main()
 
111
  st.audio("output.mp3")
112
 
113
  # Call the text-to-speech function with some text
114
+ text_to_speech(response_text)