Uniaff commited on
Commit
d44b35c
·
verified ·
1 Parent(s): 88a8ad3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
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
- # # Adjust license agreement logic
15
- # license_agreement = os.getenv('COQUI_LICENSE_AGREEMENT', 'n') # Default to 'n'
16
- # if license_agreement == 'y':
17
- # print("Commercial license confirmed.")
18
- # else:
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
  # Глобальные переменные и настройки