Solshine commited on
Commit
cc84c76
1 Parent(s): 3509ad1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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
- from io import BytesIO
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)