juliandreykorn commited on
Commit
8b65bcb
1 Parent(s): 2198981

Manually write terms

Browse files
Files changed (2) hide show
  1. handler.py +4 -3
  2. tos_agreed.txt +0 -1
handler.py CHANGED
@@ -64,6 +64,7 @@ class EndpointHandler:
64
  target_folder = os.path.join(home_dir, '.local', 'share', 'tts', 'tts_models--multilingual--multi-dataset--xtts_v2')
65
  if not os.path.exists(target_folder):
66
  os.makedirs(target_folder)
67
- source_file = './tos_agreed.txt'
68
- destination_file = os.path.join(target_folder, 'tos_agreed.txt')
69
- shutil.copy(source_file, destination_file)
 
 
64
  target_folder = os.path.join(home_dir, '.local', 'share', 'tts', 'tts_models--multilingual--multi-dataset--xtts_v2')
65
  if not os.path.exists(target_folder):
66
  os.makedirs(target_folder)
67
+ target_file = os.path.join(target_folder, 'tos_agreed.txt')
68
+ text_to_write = "I have read, understood and agreed to the Terms and Conditions."
69
+ with open(target_file, 'w') as file:
70
+ file.write(text_to_write)
tos_agreed.txt DELETED
@@ -1 +0,0 @@
1
- I have read, understood and agreed to the Terms and Conditions.