Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,12 +21,12 @@ if uploaded_file is not None:
|
|
21 |
|
22 |
element = output.getvalue()
|
23 |
st.write(element)
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
|
29 |
-
|
30 |
|
31 |
|
32 |
|
|
|
21 |
|
22 |
element = output.getvalue()
|
23 |
st.write(element)
|
24 |
+
with st.popover("Open popover"):
|
25 |
+
sound_file = BytesIO()
|
26 |
+
tts = gTTS(element, lang='en')
|
27 |
+
tts.write_to_fp(sound_file)
|
28 |
|
29 |
+
st.audio(sound_file)
|
30 |
|
31 |
|
32 |
|