muzammil-eds commited on
Commit
3fa4fb2
1 Parent(s): 8b6c021

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -11
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
- if st.button('Click to start recording'):
53
- init_button = audio_recorder(
54
- text="",
55
- recording_color="#e8b62c",
56
- neutral_color="#6aa36f",
57
- pause_threshold=0.1,
58
- icon_name="", # You can change this to any Font Awesome solid icon
59
- icon_size="4x",
60
- auto_start=True
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