Spaces:
Runtime error
Runtime error
Shrirang20
commited on
Update app.py
Browse files
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 |
|