Spaces:
Runtime error
Runtime error
File size: 417 Bytes
474f4cc cc84c76 474f4cc 4b5b0e4 cc84c76 e2bb816 b56acb6 0acfb8a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import streamlit as st
from gtts import gTTS
from io import BytesIO
x = st.slider('Select a value')
slider_reply = x, 'squared is', x * x
st.write(slider_reply)
prompt = st.chat_input("Say something")
if prompt:
st.write(prompt)
with st.popover("Open popover"):
sound_file = BytesIO()
tts = gTTS(prompt, lang='en')
tts.write_to_fp(sound_file)
st.audio(sound_file)
|