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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -49,15 +49,16 @@ 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
 
49
 
50
  st.write("Click the Loader below to initialize the audio recorders.")
51
  init_button = audio_recorder(
52
+ text="Click to Initialize",
53
  recording_color="#e8b62c",
54
  neutral_color="#6aa36f",
55
  pause_threshold=0.2,
56
+ icon_name="play-circle", # A nice play icon to signify starting the initialization
57
  icon_size="4x",
58
+ auto_start=False
59
  )
60
+
61
+ if init_button:
62
  st.session_state['initialized'] = True
63
 
64
  # If initialized, display the recorders