Kleber commited on
Commit
b893cbb
1 Parent(s): e7add45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ hf_model = nemo_asr.models.EncDecRNNTBPEModel.from_pretrained(
9
 
10
  def convert (audio):
11
  file_name = audio.name
12
- if file_name.endswith("mp3") or file_name.endswith("wav") or file_name.endswith("ogg"):
13
  if file_name.endswith("mp3"):
14
  sound = AudioSegment.from_mp3(audio.name)
15
  sound.export(audio.name, format="wav")
 
9
 
10
  def convert (audio):
11
  file_name = audio.name
12
+ if file_name.endswith("mp3") or file_name.endswith("wav") or file_name.endswith("ogg"):
13
  if file_name.endswith("mp3"):
14
  sound = AudioSegment.from_mp3(audio.name)
15
  sound.export(audio.name, format="wav")