Spaces:
Runtime error
Runtime error
AbdullaShafeeg
commited on
Commit
·
067ad2d
1
Parent(s):
291c5c6
app update
Browse files
app.py
CHANGED
@@ -37,13 +37,13 @@ with st.expander('About this App'):
|
|
37 |
how much they are snoring during their sleep.
|
38 |
''')
|
39 |
|
40 |
-
col1, col2, col3 = st.columns(3)
|
41 |
-
col1.button('Start', on_click=start_monitoring)
|
42 |
-
col3.button('Stop', on_click=stop_monitoring)
|
43 |
-
record_button = col3.button('Monitor')
|
44 |
|
45 |
while st.session_state.run:
|
46 |
-
wav_audio_data = st_audiorec()
|
47 |
if wav_audio_data is not None:
|
48 |
st.audio(wav_audio_data, format=FORMAT, sample_rate=16000)
|
49 |
|
|
|
37 |
how much they are snoring during their sleep.
|
38 |
''')
|
39 |
|
40 |
+
# col1, col2, col3 = st.columns(3)
|
41 |
+
# col1.button('Start', on_click=start_monitoring)
|
42 |
+
# col3.button('Stop', on_click=stop_monitoring)
|
43 |
+
# record_button = col3.button('Monitor')
|
44 |
|
45 |
while st.session_state.run:
|
46 |
+
wav_audio_data = st_audiorec(key="FirstWidget")
|
47 |
if wav_audio_data is not None:
|
48 |
st.audio(wav_audio_data, format=FORMAT, sample_rate=16000)
|
49 |
|