Solshine commited on
Commit
474f4cc
1 Parent(s): 398c6d9

Create app.py

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