Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,7 @@ from googletrans import Translator, LANGUAGES
|
|
4 |
from TTS.api import TTS
|
5 |
|
6 |
# Set environment variable to automatically accept the license terms
|
7 |
-
os.environ["
|
8 |
-
os.environ["COQUI_TTS_NO_TERMS"] = "true"
|
9 |
|
10 |
# Load the TTS model once
|
11 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=False)
|
|
|
4 |
from TTS.api import TTS
|
5 |
|
6 |
# Set environment variable to automatically accept the license terms
|
7 |
+
os.environ["COQUI_TOS_AGREED"] = "1"
|
|
|
8 |
|
9 |
# Load the TTS model once
|
10 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=False)
|