Skip to content

Commit

Permalink
Check env var for COQUI_TOS_AGREED
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol committed Sep 14, 2023
1 parent 13dd7c4 commit 9d0b76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/utils/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d0b76c

Please sign in to comment.