mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-22 14:02:27 +00:00
bugfixes
This commit is contained in:
parent
01a8937d48
commit
9cd9b491ac
@ -271,7 +271,7 @@ class LollmsApplication(LoLLMsCom):
|
|||||||
|
|
||||||
ASCIIColors.yellow(f" -> self.config.xtts_enable: {self.config.xtts_enable}")
|
ASCIIColors.yellow(f" -> self.config.xtts_enable: {self.config.xtts_enable}")
|
||||||
ASCIIColors.yellow(f" -> self.config.active_stt_service: {self.config.active_stt_service}")
|
ASCIIColors.yellow(f" -> self.config.active_stt_service: {self.config.active_stt_service}")
|
||||||
if self.config.xtts_enable or self.config.active_stt_service == "xtts":
|
if self.config.xtts_enable or self.config.active_tts_service == "xtts":
|
||||||
ASCIIColors.yellow("Loading XTTS")
|
ASCIIColors.yellow("Loading XTTS")
|
||||||
try:
|
try:
|
||||||
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
||||||
@ -366,7 +366,7 @@ class LollmsApplication(LoLLMsCom):
|
|||||||
self.whisper = LollmsWhisper(self, self.config.whisper_model, self.lollms_paths.personal_outputs_path)
|
self.whisper = LollmsWhisper(self, self.config.whisper_model, self.lollms_paths.personal_outputs_path)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
trace_exception(ex)
|
trace_exception(ex)
|
||||||
if (self.config.xtts_enable or self.config.active_stt_service == "xtts") and self.xtts is None:
|
if (self.config.xtts_enable or self.config.active_tts_service == "xtts") and self.xtts is None:
|
||||||
ASCIIColors.yellow("Loading XTTS")
|
ASCIIColors.yellow("Loading XTTS")
|
||||||
try:
|
try:
|
||||||
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
from lollms.services.xtts.lollms_xtts import LollmsXTTS
|
||||||
@ -423,7 +423,7 @@ class LollmsApplication(LoLLMsCom):
|
|||||||
if self.config.active_tts_service == "openai_tts":
|
if self.config.active_tts_service == "openai_tts":
|
||||||
from lollms.services.open_ai_tts.lollms_openai_tts import LollmsOpenAITTS
|
from lollms.services.open_ai_tts.lollms_openai_tts import LollmsOpenAITTS
|
||||||
self.tts = LollmsOpenAITTS(self, self.config.openai_tts_model, self.config.openai_tts_voice, self.config.openai_tts_key)
|
self.tts = LollmsOpenAITTS(self, self.config.openai_tts_model, self.config.openai_tts_voice, self.config.openai_tts_key)
|
||||||
elif self.config.active_stt_service == "xtts" and self.xtts:
|
elif self.config.active_tts_service == "xtts" and self.xtts:
|
||||||
self.tts = self.xtts
|
self.tts = self.xtts
|
||||||
|
|
||||||
if self.config.active_stt_service == "openai_whisper":
|
if self.config.active_stt_service == "openai_whisper":
|
||||||
|
Loading…
Reference in New Issue
Block a user