cocktailpeanut commited on
Commit
f305508
1 Parent(s): 372bdc9
Files changed (1) hide show
  1. melo/download_utils.py +2 -2
melo/download_utils.py CHANGED
@@ -26,7 +26,7 @@ DOWNLOAD_CONFIG_URLS = {
26
  def load_or_download_config(locale):
27
  language = locale.split('-')[0].upper()
28
  print(f"language={language}, locale={locale}")
29
- assert language in DOWNLOAD_CONFIG_URLS
30
 
31
  #config_path = os.path.expanduser(f'~/.local/share/openvoice/basespeakers/{language}/config.json')
32
  config_path = os.path.join(cwd, f"openvoice/basespeakers/{language}/config.json")
@@ -43,7 +43,7 @@ def load_or_download_config(locale):
43
  def load_or_download_model(locale, device):
44
  language = locale.split('-')[0].upper()
45
  print(f"language={language}, locale={locale}")
46
- assert language in DOWNLOAD_CKPT_URLS
47
  #ckpt_path = os.path.expanduser(f'~/.local/share/openvoice/basespeakers/{language}/checkpoint.pth')
48
  ckpt_path = os.path.join(cwd, f"openvoice/basespeakers/{language}/checkpoint.pth")
49
  try:
 
26
  def load_or_download_config(locale):
27
  language = locale.split('-')[0].upper()
28
  print(f"language={language}, locale={locale}")
29
+ # assert language in DOWNLOAD_CONFIG_URLS
30
 
31
  #config_path = os.path.expanduser(f'~/.local/share/openvoice/basespeakers/{language}/config.json')
32
  config_path = os.path.join(cwd, f"openvoice/basespeakers/{language}/config.json")
 
43
  def load_or_download_model(locale, device):
44
  language = locale.split('-')[0].upper()
45
  print(f"language={language}, locale={locale}")
46
+ # assert language in DOWNLOAD_CKPT_URLS
47
  #ckpt_path = os.path.expanduser(f'~/.local/share/openvoice/basespeakers/{language}/checkpoint.pth')
48
  ckpt_path = os.path.join(cwd, f"openvoice/basespeakers/{language}/checkpoint.pth")
49
  try: