Check env var for COQUI_TOS_AGREED

env_tos
Eren G??lge 2023-09-14 17:51:40 +02:00
parent 13dd7c4c9e
commit 9d0b76ce23
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ class ModelManager(object):
"""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