From 0aa558f17b9040843fd75f0106217899dcad0cad Mon Sep 17 00:00:00 2001 From: ebolam Date: Fri, 28 Oct 2022 19:10:27 -0400 Subject: [PATCH] Fix for position of debug dump on popups --- aiserver.py | 2 +- static/koboldai.css | 8 ++++++++ templates/popups.html | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/aiserver.py b/aiserver.py index af1d1f3c..2d3644b3 100644 --- a/aiserver.py +++ b/aiserver.py @@ -2232,7 +2232,7 @@ def patch_transformers(): self.completed = [False]*len(input_ids) for i in range(len(input_ids)): if input_ids[i][-2] == null_character: - input_ids[i][-1] = tokenizer.encode(chr(0))[0] + input_ids[i][-1] = null_character elif data[i][-1*(len(koboldai_vars.chatname)+1):] == koboldai_vars.chatname + ":": #We now have the user name in chat mode with a :. We want to remove that from the data #We do need to check if the first token includes more than the chatname (Ie " You") so we don't loose the extra data diff --git a/static/koboldai.css b/static/koboldai.css index 0299cc1c..c361474a 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -2170,6 +2170,14 @@ body { float: right; } +.debug-dump-log { + opacity: 0.7; + font-size: small; + float: right; + position: absolute; + right: 10px; +} + #debug-file-prompt { width: 25%; max-height: 500px; diff --git a/templates/popups.html b/templates/popups.html index d369b1a6..85cafdd7 100644 --- a/templates/popups.html +++ b/templates/popups.html @@ -152,7 +152,7 @@