akash015 commited on
Commit
8f91d8a
·
verified ·
1 Parent(s): 55151cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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["TTS_API_KEY"] = "true"
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)