Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
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"
|