mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for position of debug dump on popups
This commit is contained in:
@@ -2232,7 +2232,7 @@ def patch_transformers():
|
|||||||
self.completed = [False]*len(input_ids)
|
self.completed = [False]*len(input_ids)
|
||||||
for i in range(len(input_ids)):
|
for i in range(len(input_ids)):
|
||||||
if input_ids[i][-2] == null_character:
|
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 + ":":
|
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 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
|
#We do need to check if the first token includes more than the chatname (Ie " You") so we don't loose the extra data
|
||||||
|
@@ -2170,6 +2170,14 @@ body {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.debug-dump-log {
|
||||||
|
opacity: 0.7;
|
||||||
|
font-size: small;
|
||||||
|
float: right;
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
#debug-file-prompt {
|
#debug-file-prompt {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
|
@@ -152,7 +152,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="popup_load_cancel">
|
<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>
|
<button type="button" class="btn btn-primary popup_load_cancel_button" onclick="closePopups();">Ok</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user