mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for visual bug on Chrome
This commit is contained in:
@@ -2151,8 +2151,6 @@ def patch_transformers():
|
|||||||
|
|
||||||
data = [applyoutputformatting(utils.decodenewlines(tokenizer.decode(x[-1])), no_sentence_trimming=True) for x in input_ids]
|
data = [applyoutputformatting(utils.decodenewlines(tokenizer.decode(x[-1])), no_sentence_trimming=True) for x in input_ids]
|
||||||
koboldai_vars.actions.stream_tokens(data)
|
koboldai_vars.actions.stream_tokens(data)
|
||||||
if koboldai_settings.queue is not None:
|
|
||||||
koboldai_settings.queue.put(["from_server", {"cmd": "streamtoken", "data": data}, {"broadcast":True, "room":"UI_1"}])
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
class CoreStopper(StoppingCriteria):
|
class CoreStopper(StoppingCriteria):
|
||||||
|
@@ -1494,8 +1494,11 @@ class KoboldStoryRegister(object):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if self.tokenizer is not None:
|
if self.koboldai_vars.tokenizer is not None:
|
||||||
if len(self.koboldai_vars.tokenizer.encode(self.actions[self.action_count+1]['Selected Text'])) != self.koboldai_vars.genamt:
|
if len(self.koboldai_vars.tokenizer.encode(self.actions[self.action_count+1]['Selected Text'])) != self.koboldai_vars.genamt:
|
||||||
|
#ui1
|
||||||
|
if queue is not None:
|
||||||
|
queue.put(["from_server", {"cmd": "streamtoken", "data": text_list[0]}, {"broadcast":True, "room":"UI_1"}])
|
||||||
#process_variable_changes(self.socketio, "actions", "Options", {"id": self.action_count+1, "options": self.actions[self.action_count+1]["Options"]}, {"id": self.action_count+1, "options": None})
|
#process_variable_changes(self.socketio, "actions", "Options", {"id": self.action_count+1, "options": self.actions[self.action_count+1]["Options"]}, {"id": self.action_count+1, "options": None})
|
||||||
process_variable_changes(self.socketio, "story", 'actions', {"id": self.action_count+1, 'action': self.actions[self.action_count+1]}, None)
|
process_variable_changes(self.socketio, "story", 'actions', {"id": self.action_count+1, 'action': self.actions[self.action_count+1]}, None)
|
||||||
|
|
||||||
|
@@ -2717,3 +2717,7 @@ input[type='range'] {
|
|||||||
visibility: visible;
|
visibility: visible;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
|
select {
|
||||||
|
outline: none;
|
||||||
|
}
|
Reference in New Issue
Block a user