Vageesh1 commited on
Commit
0e9f890
·
1 Parent(s): 79050de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ def ui():
95
  with st.form(key='my_form', clear_on_submit=True):
96
  audio_file = audiorecorder("Click to record", "Recording...")
97
  wav_file = open("./output_audio.mp3", "wb")
98
- wav_file.write(audio.tobytes())
99
  submit_button = st.form_submit_button(label='Send')
100
  if submit_button and audio_file:
101
  output_file_path = "./output_audio.mp3"
 
95
  with st.form(key='my_form', clear_on_submit=True):
96
  audio_file = audiorecorder("Click to record", "Recording...")
97
  wav_file = open("./output_audio.mp3", "wb")
98
+ wav_file.write(audio_file.tobytes())
99
  submit_button = st.form_submit_button(label='Send')
100
  if submit_button and audio_file:
101
  output_file_path = "./output_audio.mp3"