Skip to content

Commit

Permalink
Make comments in .model.json valid
Browse files Browse the repository at this point in the history
  • Loading branch information
WeberJulian committed Dec 11, 2023
1 parent 605a857 commit d47b6df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions TTS/utils/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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 = {
Expand Down Expand Up @@ -65,8 +65,7 @@ def read_models_file(self, file_path):
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:
Expand Down

0 comments on commit d47b6df

Please sign in to comment.