Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,7 @@ import os
|
|
24 |
import re
|
25 |
import sys
|
26 |
import pandas as pd
|
|
|
27 |
|
28 |
from helper import parse_transcription,hindi_to_english,translate_english_to_hindi,hindi_tts
|
29 |
|
@@ -93,7 +94,7 @@ def ui():
|
|
93 |
|
94 |
with container:
|
95 |
with st.form(key='my_form', clear_on_submit=True):
|
96 |
-
audio_file = st.file_uploader("Upload an audio file
|
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"
|
|
|
24 |
import re
|
25 |
import sys
|
26 |
import pandas as pd
|
27 |
+
import librosa
|
28 |
|
29 |
from helper import parse_transcription,hindi_to_english,translate_english_to_hindi,hindi_tts
|
30 |
|
|
|
94 |
|
95 |
with container:
|
96 |
with st.form(key='my_form', clear_on_submit=True):
|
97 |
+
audio_file = st.file_uploader("Upload an audio file ", type=[ "wav,Mp4","Mp3"])
|
98 |
submit_button = st.form_submit_button(label='Send')
|
99 |
if audio_file is not None and submit_button :
|
100 |
output_file_path = "./output_audio.mp3"
|