Spaces:
Runtime error
Runtime error
cocktailpeanut
commited on
Commit
•
73e2e10
1
Parent(s):
0d25e21
update
Browse files- melo/download_utils.py +1 -0
melo/download_utils.py
CHANGED
@@ -41,6 +41,7 @@ def load_or_download_config(locale):
|
|
41 |
|
42 |
def load_or_download_model(locale, device):
|
43 |
language = locale.split('-')[0].upper()
|
|
|
44 |
assert language in DOWNLOAD_CKPT_URLS
|
45 |
#ckpt_path = os.path.expanduser(f'~/.local/share/openvoice/basespeakers/{language}/checkpoint.pth')
|
46 |
ckpt_path = os.path.join(cwd, f"openvoice/basespeakers/{language}/checkpoint.pth")
|
|
|
41 |
|
42 |
def load_or_download_model(locale, device):
|
43 |
language = locale.split('-')[0].upper()
|
44 |
+
print(f"language={language}, locale={locale}")
|
45 |
assert language in DOWNLOAD_CKPT_URLS
|
46 |
#ckpt_path = os.path.expanduser(f'~/.local/share/openvoice/basespeakers/{language}/checkpoint.pth')
|
47 |
ckpt_path = os.path.join(cwd, f"openvoice/basespeakers/{language}/checkpoint.pth")
|