ThatOneCoder commited on
Commit
db0d02f
·
verified ·
1 Parent(s): b1974ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,7 +1,9 @@
1
  import streamlit as st
2
  from streamlit_mic_recorder import mic_recorder,speech_to_text
3
 
4
- text=speech_to_text(language='en',use_container_width=True,just_once=True,key='STT')
 
 
5
  state = st.session_state
6
 
7
  if text:
 
1
  import streamlit as st
2
  from streamlit_mic_recorder import mic_recorder,speech_to_text
3
 
4
+ text=speech_to_text(language='en',use_container_width=True,just_once=True,key='STT
5
+ if 'text_received' not in state:
6
+ state.text_received = []
7
  state = st.session_state
8
 
9
  if text: