Spaces:
Runtime error
Runtime error
Commit
·
e116204
1
Parent(s):
103de4f
update
Browse files- melo/download_utils.py +2 -2
melo/download_utils.py
CHANGED
@@ -36,7 +36,7 @@ def load_or_download_config(locale):
|
|
36 |
os.makedirs(os.path.dirname(config_path), exist_ok=True)
|
37 |
#os.system(f'wget {DOWNLOAD_CONFIG_URLS[language]} -O {config_path}')
|
38 |
print(f"URL = {DOWNLOAD_CONFIG_URLS[language]}")
|
39 |
-
os.system(f"curl -
|
40 |
return utils.get_hparams_from_file(config_path)
|
41 |
|
42 |
def load_or_download_model(locale, device):
|
@@ -50,5 +50,5 @@ def load_or_download_model(locale, device):
|
|
50 |
# download
|
51 |
os.makedirs(os.path.dirname(ckpt_path), exist_ok=True)
|
52 |
#os.system(f'wget {DOWNLOAD_CKPT_URLS[language]} -O {ckpt_path}')
|
53 |
-
os.system(f
|
54 |
return torch.load(ckpt_path, map_location=device)
|
|
|
36 |
os.makedirs(os.path.dirname(config_path), exist_ok=True)
|
37 |
#os.system(f'wget {DOWNLOAD_CONFIG_URLS[language]} -O {config_path}')
|
38 |
print(f"URL = {DOWNLOAD_CONFIG_URLS[language]}")
|
39 |
+
os.system(f"curl -o {config_path {DOWNLOAD_CONFIG_URLS[language]}")
|
40 |
return utils.get_hparams_from_file(config_path)
|
41 |
|
42 |
def load_or_download_model(locale, device):
|
|
|
50 |
# download
|
51 |
os.makedirs(os.path.dirname(ckpt_path), exist_ok=True)
|
52 |
#os.system(f'wget {DOWNLOAD_CKPT_URLS[language]} -O {ckpt_path}')
|
53 |
+
os.system(f"curl -o {ckpt_path} {DOWNLOAD_CKPT_URLS[language]}")
|
54 |
return torch.load(ckpt_path, map_location=device)
|