Solshine commited on
Commit
0acfb8a
1 Parent(s): 4e26157

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -7,8 +7,9 @@ st.write(x, 'squared is', x * x)
7
 
8
  prompt = st.chat_input("Say something")
9
  if prompt:
10
- sound_file = BytesIO()
11
- tts = gTTS(prompt, lang='en')
12
- tts.write_to_fp(sound_file)
13
-
14
- st.audio(sound_file)
 
 
7
 
8
  prompt = st.chat_input("Say something")
9
  if prompt:
10
+ with st.popover("Open popover"):
11
+ sound_file = BytesIO()
12
+ tts = gTTS(prompt, lang='en')
13
+ tts.write_to_fp(sound_file)
14
+
15
+ st.audio(sound_file)