Spaces:
Build error
Build error
Update app.py
Browse files92 unmodified lines9394959697989910010110210392 unmodified lineswith container:with st.form(key='my_form', clear_on_submit=True):audio_file = audiorecorder("Click to record", "Recording...")wav_file = open("./output_audio.mp3", "wb")wav_file.write(audio_file.tobytes())submit_button = st.form_submit_button(label='Send')if submit_button :output_file_path = "./output_audio.mp3"# save_uploaded_file_as_mp3(audio_file,output_file_path )hindi_input_audio,sample_rate=torchaudio.load(output_file_path)92 unmodified lines9394959697989910010192 unmodified lineswith container:with st.form(key='my_form', clear_on_submit=True):audio_file = st.file_uploader("Upload an audio file that needs to be cloned", type=[ "wav,Mp4","Mp3"])submit_button = st.form_submit_button(label='Send')if audio_file is not None and submit_button :output_file_path = "./output_audio.mp3"# save_uploaded_file_as_mp3(audio_file,output_file_path )hindi_input_audio,sample_rate=torchaudio.load(output_file_path)
app.py+2-4