mirror of https://github.com/coqui-ai/TTS.git
Check env var for COQUI_TOS_AGREED
parent
13dd7c4c9e
commit
9d0b76ce23
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue