Walterchamy commited on
Commit
638ba58
1 Parent(s): c243014

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -96,10 +96,6 @@ def main():
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()
103
 
104
  def text_to_speech(text):
105
  # Create a text-to-speech object
@@ -109,4 +105,8 @@ def text_to_speech(text):
109
 
110
  # Play the audio file
111
  st.audio("output.mp3")
 
 
 
 
112
 
 
96
  with st.spinner("Generating Response...."):
97
  response_text = generate_response(user_input)
98
  st.write("Response:", response_text)
 
 
 
 
99
 
100
  def text_to_speech(text):
101
  # Create a text-to-speech object
 
105
 
106
  # Play the audio file
107
  st.audio("output.mp3")
108
+ text_to_speech(response_text)
109
+
110
+ if __name__ == '__main__':
111
+ main()
112