Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
|
|
|
| 2 |
|
| 3 |
x = st.slider('Select a value')
|
| 4 |
st.write(x, 'squared is', x * x)
|
| 5 |
-
|
| 6 |
sound_file = BytesIO()
|
| 7 |
tts = gTTS('Add text-to-speech to your app', lang='en')
|
| 8 |
tts.write_to_fp(sound_file)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from gtts import gTTS
|
| 3 |
+
from io import BytesIO
|
| 4 |
|
| 5 |
x = st.slider('Select a value')
|
| 6 |
st.write(x, 'squared is', x * x)
|
| 7 |
+
|
| 8 |
sound_file = BytesIO()
|
| 9 |
tts = gTTS('Add text-to-speech to your app', lang='en')
|
| 10 |
tts.write_to_fp(sound_file)
|