mirror of
https://github.com/wassname/TTS.git
synced 2026-10-04 12:20:09 +08:00
Check env var for COQUI_TOS_AGREED
This commit is contained in:
1 parent
13dd7c4c9e
commit
9d0b76ce23
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user