Arafath10 commited on
Commit
7e0ec98
·
verified ·
1 Parent(s): b0854df

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
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