Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ def ui():
|
|
97 |
submit_button = st.form_submit_button(label='Send')
|
98 |
if audio_file is not None and submit_button :
|
99 |
output_file_path = "./output_audio.mp3"
|
100 |
-
|
101 |
hindi_input_audio,sample_rate=torchaudio.load(output_file_path)
|
102 |
#applying the audio recognition
|
103 |
hindi_transcription=parse_transcription('./output_audio.mp3')
|
|
|
97 |
submit_button = st.form_submit_button(label='Send')
|
98 |
if audio_file is not None and submit_button :
|
99 |
output_file_path = "./output_audio.mp3"
|
100 |
+
save_uploaded_file_as_mp3(audio_file,output_file_path )
|
101 |
hindi_input_audio,sample_rate=torchaudio.load(output_file_path)
|
102 |
#applying the audio recognition
|
103 |
hindi_transcription=parse_transcription('./output_audio.mp3')
|