diff --git a/lollms/audio_gen_modules/lollms_xtts.py b/lollms/audio_gen_modules/lollms_xtts.py index 6516832..5e00497 100644 --- a/lollms/audio_gen_modules/lollms_xtts.py +++ b/lollms/audio_gen_modules/lollms_xtts.py @@ -96,8 +96,6 @@ class LollmsXTTS: self.auto_xtts_url = self.auto_xtts_base_url+"/sdapi/v1" shared_folder = root_dir/"shared" self.xtts_folder = shared_folder / "xtts" - self.output_dir = root_dir / "outputs/sd" - self.output_dir.mkdir(parents=True, exist_ok=True) ASCIIColors.red(".____ ________ .____ .____ _____ _________ ____ __________________________________ ") diff --git a/lollms/personality.py b/lollms/personality.py index 3c4edde..fe11278 100644 --- a/lollms/personality.py +++ b/lollms/personality.py @@ -1979,6 +1979,20 @@ class APScript(StateMachine): if callback: callback(code, MSG_TYPE.MSG_TYPE_CODE) + def chunk(self, full_text:str, callback: Callable[[str, MSG_TYPE, dict, list], bool]=None): + """This sends full text to front end + + Args: + step_text (dict): The step text + callback (callable, optional): A callable with this signature (str, MSG_TYPE) to send the text to. Defaults to None. + """ + if not callback and self.callback: + callback = self.callback + + if callback: + callback(full_text, MSG_TYPE.MSG_TYPE_CHUNK) + + def full(self, full_text:str, callback: Callable[[str, MSG_TYPE, dict, list], bool]=None): """This sends full text to front end