Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,17 +48,16 @@ if 'initialized' not in st.session_state:
|
|
| 48 |
if not st.session_state['initialized']:
|
| 49 |
|
| 50 |
st.write("Click the Loader below to initialize the audio recorders.")
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
)
|
| 62 |
st.session_state['initialized'] = True
|
| 63 |
|
| 64 |
# If initialized, display the recorders
|
|
|
|
| 48 |
if not st.session_state['initialized']:
|
| 49 |
|
| 50 |
st.write("Click the Loader below to initialize the audio recorders.")
|
| 51 |
+
init_button = audio_recorder(
|
| 52 |
+
text="",
|
| 53 |
+
recording_color="#e8b62c",
|
| 54 |
+
neutral_color="#6aa36f",
|
| 55 |
+
pause_threshold=0.2,
|
| 56 |
+
icon_name="", # You can change this to any Font Awesome solid icon
|
| 57 |
+
icon_size="4x",
|
| 58 |
+
auto_start=True
|
| 59 |
+
)
|
| 60 |
+
if st.button('Click to Initialize Audio Recorders'):
|
|
|
|
| 61 |
st.session_state['initialized'] = True
|
| 62 |
|
| 63 |
# If initialized, display the recorders
|