Spaces:
Running
Running
automatic agreement to download model
Browse files- TTS/utils/manage.py +3 -9
TTS/utils/manage.py
CHANGED
@@ -301,15 +301,9 @@ class ModelManager(object):
|
|
301 |
def ask_tos(model_full_path):
|
302 |
"""Ask the user to agree to the terms of service"""
|
303 |
tos_path = os.path.join(model_full_path, "tos_agreed.txt")
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
answer = input(" | | > ")
|
308 |
-
if answer.lower() == "y":
|
309 |
-
with open(tos_path, "w", encoding="utf-8") as f:
|
310 |
-
f.write("I have read, understood and agreed to the Terms and Conditions.")
|
311 |
-
return True
|
312 |
-
return False
|
313 |
|
314 |
@staticmethod
|
315 |
def tos_agreed(model_item, model_full_path):
|
|
|
301 |
def ask_tos(model_full_path):
|
302 |
"""Ask the user to agree to the terms of service"""
|
303 |
tos_path = os.path.join(model_full_path, "tos_agreed.txt")
|
304 |
+
with open(tos_path, "w", encoding="utf-8") as f:
|
305 |
+
f.write("Automatically agreed to the Terms and Conditions.")
|
306 |
+
return True
|
|
|
|
|
|
|
|
|
|
|
|
|
307 |
|
308 |
@staticmethod
|
309 |
def tos_agreed(model_item, model_full_path):
|