Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ st.write(x, 'squared is', x * x)
|
|
8 |
prompt = st.chat_input("Say something")
|
9 |
if prompt:
|
10 |
sound_file = BytesIO()
|
11 |
-
tts = gTTS(
|
12 |
tts.write_to_fp(sound_file)
|
13 |
|
14 |
st.audio(sound_file)
|
|
|
8 |
prompt = st.chat_input("Say something")
|
9 |
if prompt:
|
10 |
sound_file = BytesIO()
|
11 |
+
tts = gTTS(prompt, lang='en')
|
12 |
tts.write_to_fp(sound_file)
|
13 |
|
14 |
st.audio(sound_file)
|