Update app.py
Browse files
app.py
CHANGED
@@ -6,13 +6,16 @@ import gradio as gr
|
|
6 |
from pydub import AudioSegment
|
7 |
from TTS.api import TTS
|
8 |
|
|
|
|
|
9 |
|
10 |
-
license_agreement = os.getenv('COQUI_LICENSE_AGREEMENT', 'y') # Default to '
|
11 |
if license_agreement == 'y':
|
12 |
print("Commercial license confirmed.")
|
13 |
else:
|
14 |
print("Using non-commercial CPML.")
|
15 |
|
|
|
16 |
# Глобальные переменные и настройки
|
17 |
language_options = {
|
18 |
"English (en)": "en",
|
|
|
6 |
from pydub import AudioSegment
|
7 |
from TTS.api import TTS
|
8 |
|
9 |
+
# Set the environment variable to accept the license terms
|
10 |
+
os.environ["TTS_ACCEPT_TOS"] = "1"
|
11 |
|
12 |
+
license_agreement = os.getenv('COQUI_LICENSE_AGREEMENT', 'y') # Default to 'y'
|
13 |
if license_agreement == 'y':
|
14 |
print("Commercial license confirmed.")
|
15 |
else:
|
16 |
print("Using non-commercial CPML.")
|
17 |
|
18 |
+
|
19 |
# Глобальные переменные и настройки
|
20 |
language_options = {
|
21 |
"English (en)": "en",
|