Spaces:
Runtime error
Runtime error
Shrirang20
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -336,7 +336,7 @@ def download_ai4b_asr_model(lang: str):
|
|
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',
|
340 |
|
341 |
|
342 |
return download_path
|
|
|
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', download_path], check=True)
|
340 |
|
341 |
|
342 |
return download_path
|