Add default_config_path

Added default_config_path & set debug_narrator = False
This commit is contained in:
erew123 authored and GitHub committed 2024-11-20 01:15:10 +00:00
1 parent fff2fac88d
commit 9e7a785303
1 file changed
+5 -1
+5 -1
View File
@@ -82,7 +82,7 @@ class AlltalkConfigDebug:
debug_func: bool = False debug_func: bool = False
debug_api: bool = False debug_api: bool = False
debug_fullttstext: bool = False debug_fullttstext: bool = False
debug_narrator: bool = True debug_narrator: bool = False
@dataclass @dataclass
class AlltalkConfigGradioPages: class AlltalkConfigGradioPages:
@@ -308,6 +308,10 @@ class AlltalkConfig(AbstractJsonConfig):
self.gradio_pages = AlltalkConfigGradioPages() self.gradio_pages = AlltalkConfigGradioPages()
self._load_config() self._load_config()
@staticmethod
def default_config_path():
return AlltalkConfig.__this_dir / "confignew.json"
@staticmethod @staticmethod
def get_instance(force_reload = False): def get_instance(force_reload = False):
if AlltalkConfig.__instance is None: if AlltalkConfig.__instance is None: