Make comments in .model.json valid

pull/3405/head
WeberJulian 2023-12-11 23:35:27 +01:00
parent 605a857add
commit d47b6df4e5
1 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,7 @@ import fsspec
import requests
from tqdm import tqdm
from TTS.config import load_config
from TTS.config import load_config, read_json_with_comments
from TTS.utils.generic_utils import get_user_data_dir
LICENSE_URLS = {
@ -65,8 +65,7 @@ class ModelManager(object):
Args:
file_path (str): path to .models.json.
"""
with open(file_path, "r", encoding="utf-8") as json_file:
self.models_dict = json.load(json_file)
self.models_dict = read_json_with_comments(file_path)
def _list_models(self, model_type, model_count=0):
if self.verbose: