Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ 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 |
|
6 |
if text:
|
7 |
state.text_received.append(text)
|
|
|
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:
|
8 |
state.text_received.append(text)
|