Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ if user_input:
|
|
43 |
tts = gTTS(response, lang='en')
|
44 |
audio_file = "response.mp3"
|
45 |
tts.save(audio_file)
|
46 |
-
st.audio(audio_file, format="audio/mp3"
|
47 |
|
48 |
# Suggest a productive activity based on detected keywords
|
49 |
if any(keyword in user_input.lower() for keyword in ["lonely", "lost", "sad"]):
|
|
|
43 |
tts = gTTS(response, lang='en')
|
44 |
audio_file = "response.mp3"
|
45 |
tts.save(audio_file)
|
46 |
+
st.audio(audio_file, format="audio/mp3") # Removed use_container_width=True
|
47 |
|
48 |
# Suggest a productive activity based on detected keywords
|
49 |
if any(keyword in user_input.lower() for keyword in ["lonely", "lost", "sad"]):
|