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