mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-09 13:58:14 -05:00
fix tts_manager typo`
This commit is contained in:
@@ -11,7 +11,7 @@ x-gpu-disabled: &gpu-disabled
|
||||
devices: [] # Disables GPU access (default for systems without an NVIDIA GPU).
|
||||
|
||||
services:
|
||||
ebook2audiobookxtts:
|
||||
ebook2audiobook:
|
||||
image: athomasson2/ebook2audiobook:latest
|
||||
platform: linux/amd64
|
||||
tty: true
|
||||
|
||||
@@ -68,7 +68,7 @@ class TTSManager:
|
||||
if self.model_name in loaded_tts.keys():
|
||||
self.params['tts'] = loaded_tts[self.model_name]
|
||||
else:
|
||||
self.params['tts'] = self.coqui_tts_load_custom(self.model_path, self.config_path, self.vocab_path, self.session['device'])
|
||||
self.params['tts'] = coqui_tts_load_custom(self.model_path, self.config_path, self.vocab_path, self.session['device'])
|
||||
elif self.session['fine_tuned'] != default_fine_tuned:
|
||||
self.model_name = self.session['fine_tuned']
|
||||
msg = f"Loading TTS {self.session['tts_engine']} model from {self.session['fine_tuned']}, it takes a while, please be patient..."
|
||||
@@ -82,7 +82,7 @@ class TTSManager:
|
||||
if self.model_name in loaded_tts.keys():
|
||||
self.params['tts'] = loaded_tts[self.model_name]
|
||||
else:
|
||||
self.params['tts'] = self.coqui_tts_load_custom(self.model_path, self.config_path, self.vocab_path, self.session['device'])
|
||||
self.params['tts'] = coqui_tts_load_custom(self.model_path, self.config_path, self.vocab_path, self.session['device'])
|
||||
else:
|
||||
self.model_name = self.session['fine_tuned']
|
||||
msg = f"Loading TTS {self.session['tts_engine']} model from {models[self.session['tts_engine']][self.session['fine_tuned']]['repo']}, it takes a while, please be patient..."
|
||||
|
||||
Reference in New Issue
Block a user