fix `use_cuda` bug in `server.py`

This commit is contained in:
Eren Gölge 2021-06-04 14:02:53 +02:00
parent 203ab855c3
commit b8b79a5e5a
1 changed files with 3 additions and 1 deletions

View File

@ -99,7 +99,9 @@ if args.vocoder_path is not None:
vocoder_config_path = args.vocoder_config_path
# load models
synthesizer = Synthesizer(model_path, config_path, speakers_file_path, vocoder_path, vocoder_config_path, args.use_cuda)
synthesizer = Synthesizer(
model_path, config_path, speakers_file_path, vocoder_path, vocoder_config_path, use_cuda=args.use_cuda
)
use_multi_speaker = synthesizer.speaker_manager is not None
# TODO: set this from SpeakerManager