vsj0702 commited on
Commit
ce08b05
·
verified ·
1 Parent(s): 2c64ec0

fixing lag in uploading file

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def frontend():
16
  st.title("Voice AI Demo")
17
  status_placeholder = st.empty()
18
  status_placeholder.write("Press Mic button to start asking question")
19
- recorded_audio = audio_recorder()
20
  if recorded_audio:
21
  status_placeholder.write("Converting audio ...")
22
  data_to_file(recorded_audio)
 
16
  st.title("Voice AI Demo")
17
  status_placeholder = st.empty()
18
  status_placeholder.write("Press Mic button to start asking question")
19
+ recorded_audio = audio_recorder(sample_rate=10000)
20
  if recorded_audio:
21
  status_placeholder.write("Converting audio ...")
22
  data_to_file(recorded_audio)