Shadhil commited on
Commit
783e972
1 Parent(s): 9b2107c

automatic agreement to download model

Browse files
Files changed (1) hide show
  1. 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
- print(" > You must agree to the terms of service to use this model.")
305
- print(" | > Please see the terms of service at https://coqui.ai/cpml.txt")
306
- print(' | > "I have read, understood and agreed to the Terms and Conditions." - [y/n]')
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):