Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|