Shrirang20 commited on
Commit
52a48fb
·
verified ·
1 Parent(s): 4717adb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -334,6 +334,10 @@ def download_ai4b_asr_model(lang: str):
334
 
335
  elif lang not in available_langs:
336
  raise ValueError(f"Invalid language code: {lang}")
 
 
 
 
337
 
338
  return download_path
339
 
 
334
 
335
  elif lang not in available_langs:
336
  raise ValueError(f"Invalid language code: {lang}")
337
+ else:
338
+ url = f"https://objectstore.e2enetworks.net/indic-asr-public/indicConformer/ai4b_indicConformer_{available_langs[lang]}.nemo"
339
+ subprocess.run(['wget', url, '-O', output_path], check=True)
340
+
341
 
342
  return download_path
343