From 6e9c6e5535a2e33b69dcb2baf60d1918d4865e84 Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 10 Aug 2022 16:58:54 -0400 Subject: [PATCH] Turning on relay debuging to troubleshoot on colab --- koboldai_settings.py | 2 +- static/koboldai.js | 2 ++ templates/index_new.html | 59 +--------------------------------------- 3 files changed, 4 insertions(+), 59 deletions(-) diff --git a/koboldai_settings.py b/koboldai_settings.py index eba3b26f..730a69ba 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -38,7 +38,7 @@ def process_variable_changes(socketio, classname, name, value, old_value, debug_ if threading.get_ident() in rely_clients: sio = rely_clients[threading.get_ident()] else: - sio = socketio_client.Client() + sio = socketio_client.Client(logger=True, engineio_logger=True) @sio.event def connect(): pass diff --git a/static/koboldai.js b/static/koboldai.js index 5de3107e..85a96c65 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -404,9 +404,11 @@ function var_changed(data) { //if we changed the gen amount, make sure our option area is set/not set if ((data.classname == 'model') && (data.name == 'numseqs')) { if (data.value == 1) { + //allow our options to collapse to 0%, but no more than 30% (in case there is a redo or the like) var r = document.querySelector(':root'); r.style.setProperty('--story_options_size', 'fit-content(30%)'); } else { + //static 30% var r = document.querySelector(':root'); r.style.setProperty('--story_options_size', '30%'); } diff --git a/templates/index_new.html b/templates/index_new.html index b709736c..f25b7fa8 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -77,64 +77,7 @@