From 9d0b76ce2393455dbe9523288d5c341953350fb5 Mon Sep 17 00:00:00 2001 From: Eren G??lge Date: Thu, 14 Sep 2023 17:51:40 +0200 Subject: [PATCH] Check env var for COQUI_TOS_AGREED --- TTS/utils/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/utils/manage.py b/TTS/utils/manage.py index 6e082297ca..f38d23f8e8 100644 --- a/TTS/utils/manage.py +++ b/TTS/utils/manage.py @@ -315,7 +315,7 @@ def tos_agreed(self, model_item, model_full_path): """Check if the user has agreed to the terms of service""" if "tos_required" in model_item and model_item["tos_required"]: tos_path = os.path.join(model_full_path, "tos_agreed.txt") - if os.path.exists(tos_path): + if os.path.exists(tos_path) or os.environ.get("COQUI_TOS_AGREED") == "1": return True return False return True