juliandreykorn
commited on
Commit
•
8b65bcb
1
Parent(s):
2198981
Manually write terms
Browse files- handler.py +4 -3
- 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 |
-
|
68 |
-
|
69 |
-
|
|
|
|
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.
|
|
|
|