From a2a2888f5fe74cec899cb725b033d0c8c9f40476 Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 29 Jun 2022 16:50:16 -0400 Subject: [PATCH] Test for colab --- koboldai_settings.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/koboldai_settings.py b/koboldai_settings.py index 1dc35c2e..b5a9ced5 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -164,7 +164,12 @@ class settings(object): def send_to_ui(self): for (name, value) in vars(self).items(): if name not in self.local_only_variables and name[0] != "_": - process_variable_changes(self.socketio, self.__class__.__name__.replace("_settings", ""), name, value, None) + print(name) + try: + process_variable_changes(self.socketio, self.__class__.__name__.replace("_settings", ""), name, clean_var_for_emit(value), None) + except: + print("{} is of type {} and I can't transmit".format(name, type(value))) + raise class model_settings(settings): local_only_variables = ['badwordsids', 'apikey', 'tqdm', 'socketio']