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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,11 +1,12 @@
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:
10
  state.text_received.append(text)
11
 
 
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_received' not in state:
8
+ state.text_received = []
9
+
10
  if text:
11
  state.text_received.append(text)
12