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