Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,12 +11,11 @@ from TTS.api import TTS
|
|
11 |
# os.environ["TTS_LICENSE_ACCEPT"] = "true"
|
12 |
# os.environ["COQUI_STUDIO_LICENSE"] = "1"
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
# print("Using non-commercial CPML.")
|
20 |
|
21 |
|
22 |
# Глобальные переменные и настройки
|
|
|
11 |
# os.environ["TTS_LICENSE_ACCEPT"] = "true"
|
12 |
# os.environ["COQUI_STUDIO_LICENSE"] = "1"
|
13 |
|
14 |
+
license_agreement = os.getenv('COQUI_LICENSE_AGREEMENT', 'n') # Default to 'n'
|
15 |
+
if license_agreement == 'y':
|
16 |
+
print("Commercial license confirmed.")
|
17 |
+
else:
|
18 |
+
print("Using non-commercial CPML.")
|
|
|
19 |
|
20 |
|
21 |
# Глобальные переменные и настройки
|