Skip to content

Commit

Permalink
Add short timeout to check_config
Browse files Browse the repository at this point in the history
  • Loading branch information
WeberJulian committed Nov 17, 2023
1 parent 7e4375d commit 92264da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions TTS/utils/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,7 @@ def check_if_configs_are_equal(self, model_name, model_item, output_path):
remote_url = url
break

with fsspec.open(remote_url, "r", encoding="utf-8") as f:
config_remote = json.load(f)
config_remote = requests.get(remote_url, timeout=2).json()

if not config_local == config_remote:
print(f" > {model_name} is already downloaded however it has been changed. Redownloading it...")
Expand Down

0 comments on commit 92264da

Please sign in to comment.