CineAI commited on
Commit
c80d441
·
verified ·
1 Parent(s): 346b458

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -7,8 +7,15 @@ wav_audio_data = st_audiorec()
7
 
8
  def main():
9
  if wav_audio_data is not None:
10
- st.write(type(wav_audio_data))
11
- st.write(wav_audio_data.numpy())
 
 
 
 
 
 
 
12
 
13
  if __name__ == "__main__":
14
  main()
 
7
 
8
  def main():
9
  if wav_audio_data is not None:
10
+ if st.button("Press it"):
11
+ with st.spinner('Wait for it....'):
12
+ st.write(type(wav_audio_data))
13
+ st.write(wav_audio_data.numpy())
14
+ st.success("Done!")
15
+ else:
16
+ st.error('Sorry', icon="🤖")
17
+ else:
18
+ st.error('Sorry audio is None', icon="🤖")
19
 
20
  if __name__ == "__main__":
21
  main()