lalalic commited on
Commit
4a40ff7
·
verified ·
1 Parent(s): ad7c13b

Update xtts.py

Browse files
Files changed (1) hide show
  1. xtts.py +4 -4
xtts.py CHANGED
@@ -172,10 +172,10 @@ def get_tts(model_path=os.environ["MODEL_DIR"]):
172
  model_name="tts_models/multilingual/multi-dataset/xtts_v2"
173
  logging.info(f"loading model {model_name} ...")
174
  tts = TTS(
175
- model_name if bLOCAL else None,
176
- model_path=model_path if not bLOCAL else None,
177
- config_path=config_path if not bLOCAL else None,
178
- vocoder_config_path=vocoder_config_path if not bLOCAL else None,
179
  progress_bar=True
180
  )
181
  model=tts.synthesizer.tts_model
 
172
  model_name="tts_models/multilingual/multi-dataset/xtts_v2"
173
  logging.info(f"loading model {model_name} ...")
174
  tts = TTS(
175
+ model_name if not model_path else None,
176
+ model_path=model_path if model_path else None,
177
+ config_path=config_path if model_path else None,
178
+ vocoder_config_path=vocoder_config_path if model_path else None,
179
  progress_bar=True
180
  )
181
  model=tts.synthesizer.tts_model