Fix for position of debug dump on popups

This commit is contained in:
ebolam
2022-10-28 19:10:27 -04:00
parent 4cd8cbe58b
commit 0aa558f17b
3 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -152,7 +152,7 @@
</div>
<div class="popup_load_cancel">
<span id="debug-dump" class="cursor" onclick="openPopup('debug-file-prompt');">Download debug dump</span>
<span class="cursor debug-dump-log" onclick="openPopup('debug-file-prompt');">Download debug dump</span>
<button type="button" class="btn btn-primary popup_load_cancel_button" onclick="closePopups();">Ok</button>
</div>
</div>