Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -985,7 +985,9 @@ def main():
|
|
985 |
transcript = st.components.v1.html(speech_recognition_html, height=400)
|
986 |
|
987 |
# Update session state if there's new data
|
988 |
-
|
|
|
|
|
989 |
st.session_state.voice_transcript = transcript
|
990 |
|
991 |
# Display the transcript in a Streamlit text area
|
|
|
985 |
transcript = st.components.v1.html(speech_recognition_html, height=400)
|
986 |
|
987 |
# Update session state if there's new data
|
988 |
+
showTranscript=false
|
989 |
+
if showTranscript:
|
990 |
+
#transcript is not None and transcript != "":
|
991 |
st.session_state.voice_transcript = transcript
|
992 |
|
993 |
# Display the transcript in a Streamlit text area
|