Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -6,6 +6,10 @@ from io import BytesIO
|
|
6 |
from typing import Generator
|
7 |
|
8 |
app = FastAPI()
|
|
|
|
|
|
|
|
|
9 |
|
10 |
# Initialize the TTS model
|
11 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=False) # Set gpu=True if you have GPU support
|
|
|
6 |
from typing import Generator
|
7 |
|
8 |
app = FastAPI()
|
9 |
+
import os
|
10 |
+
|
11 |
+
# By using XTTS you agree to CPML license https://coqui.ai/cpml
|
12 |
+
os.environ["COQUI_TOS_AGREED"] = "1"
|
13 |
|
14 |
# Initialize the TTS model
|
15 |
tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2", gpu=False) # Set gpu=True if you have GPU support
|