Spaces:
Runtime error
Runtime error
speech-test
commited on
Commit
•
5dac323
1
Parent(s):
c84d708
Revert stream init
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ def main():
|
|
77 |
state.pad_duration_ms = st.slider("Padding duration (ms)", 100, 5000, 1000, 100)
|
78 |
submit_button = st.form_submit_button(label="Submit")
|
79 |
|
80 |
-
if submit_button:
|
81 |
# a hack to update the video player on value changes
|
82 |
state.youtube_url = (
|
83 |
state.youtube_url.split("&hash=")[0]
|
|
|
77 |
state.pad_duration_ms = st.slider("Padding duration (ms)", 100, 5000, 1000, 100)
|
78 |
submit_button = st.form_submit_button(label="Submit")
|
79 |
|
80 |
+
if submit_button or "asr_stream" not in state:
|
81 |
# a hack to update the video player on value changes
|
82 |
state.youtube_url = (
|
83 |
state.youtube_url.split("&hash=")[0]
|