Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ st.markdown(info)
|
|
32 |
txt = st.text_area("Text")
|
33 |
if st.button('Submit'):
|
34 |
with st.spinner('Wait for it...'):
|
35 |
-
audio_file = open(tts(txt,
|
36 |
audio_bytes = audio_file.read()
|
37 |
st.balloons()
|
38 |
st.success("Yay! Check out your TTS! P.S. Why not follow my GitHub, I'm @fakerybakery on GitHub!")
|
32 |
txt = st.text_area("Text")
|
33 |
if st.button('Submit'):
|
34 |
with st.spinner('Wait for it...'):
|
35 |
+
audio_file = open(tts(txt, default_lang), 'rb')
|
36 |
audio_bytes = audio_file.read()
|
37 |
st.balloons()
|
38 |
st.success("Yay! Check out your TTS! P.S. Why not follow my GitHub, I'm @fakerybakery on GitHub!")
|