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