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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -6,17 +6,17 @@ import gradio as gr
6
  from pydub import AudioSegment
7
  from TTS.api import TTS
8
 
9
- # Set environment variables to accept license terms
10
- os.environ["TTS_ACCEPT_TOS"] = "1"
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
  # Глобальные переменные и настройки
 
6
  from pydub import AudioSegment
7
  from TTS.api import TTS
8
 
9
+ # # Set environment variables to accept license terms
10
+ # os.environ["TTS_ACCEPT_TOS"] = "1"
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
  # Глобальные переменные и настройки