shriniket73 commited on
Commit
8dbcfbe
·
verified ·
1 Parent(s): 78951a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -29,13 +29,10 @@ class OptimizedTTSService:
29
  logger.info("Initializing Optimized TTS Service...")
30
 
31
  try:
32
- # Set TTS home directory
33
  os.environ['HOME'] = '/tmp/home'
34
  os.environ['TTS_HOME'] = '/tmp/tts_home'
35
-
36
- # Create a ModelManager instance and accept license
37
- model_manager = ModelManager()
38
- model_manager.save_tos_agreed()
39
 
40
  # Set number of threads for PyTorch
41
  n_threads = max(2, multiprocessing.cpu_count() - 1)
 
29
  logger.info("Initializing Optimized TTS Service...")
30
 
31
  try:
32
+ # Set TTS home directory and accept license
33
  os.environ['HOME'] = '/tmp/home'
34
  os.environ['TTS_HOME'] = '/tmp/tts_home'
35
+ os.environ["COQUI_TOS_AGREED"] = "1" # Accept TTS license
 
 
 
36
 
37
  # Set number of threads for PyTorch
38
  n_threads = max(2, multiprocessing.cpu_count() - 1)