mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Turning on relay debuging to troubleshoot on colab
This commit is contained in:
@@ -38,7 +38,7 @@ def process_variable_changes(socketio, classname, name, value, old_value, debug_
|
|||||||
if threading.get_ident() in rely_clients:
|
if threading.get_ident() in rely_clients:
|
||||||
sio = rely_clients[threading.get_ident()]
|
sio = rely_clients[threading.get_ident()]
|
||||||
else:
|
else:
|
||||||
sio = socketio_client.Client()
|
sio = socketio_client.Client(logger=True, engineio_logger=True)
|
||||||
@sio.event
|
@sio.event
|
||||||
def connect():
|
def connect():
|
||||||
pass
|
pass
|
||||||
|
@@ -404,9 +404,11 @@ function var_changed(data) {
|
|||||||
//if we changed the gen amount, make sure our option area is set/not set
|
//if we changed the gen amount, make sure our option area is set/not set
|
||||||
if ((data.classname == 'model') && (data.name == 'numseqs')) {
|
if ((data.classname == 'model') && (data.name == 'numseqs')) {
|
||||||
if (data.value == 1) {
|
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');
|
var r = document.querySelector(':root');
|
||||||
r.style.setProperty('--story_options_size', 'fit-content(30%)');
|
r.style.setProperty('--story_options_size', 'fit-content(30%)');
|
||||||
} else {
|
} else {
|
||||||
|
//static 30%
|
||||||
var r = document.querySelector(':root');
|
var r = document.querySelector(':root');
|
||||||
r.style.setProperty('--story_options_size', '30%');
|
r.style.setProperty('--story_options_size', '30%');
|
||||||
}
|
}
|
||||||
|
@@ -77,64 +77,7 @@
|
|||||||
|
|
||||||
<!------------- Templates ------------------------------->
|
<!------------- Templates ------------------------------->
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<div draggable="true" class="world_info_card" id="world_info_">
|
{% include 'templates.html' %}
|
||||||
<div class="world_info_title_area">
|
|
||||||
<h4 id="world_info_title_" class="world_info_title"></h4>
|
|
||||||
<span id="world_info_delete_" class="world_info_delete">X</span>
|
|
||||||
</div>
|
|
||||||
<div class="world_info_tag_area" id="world_info_toggle_area_">
|
|
||||||
Always Include
|
|
||||||
</div>
|
|
||||||
<div id="world_info_tags_" class="world_info_tag_area">
|
|
||||||
<div>Requires one of:</div>
|
|
||||||
</div>
|
|
||||||
<div id="world_info_secondtags_" class="world_info_tag_area">
|
|
||||||
<div>And (if present):</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
Text:
|
|
||||||
<textarea id="world_info_entry_text_" class="world_info_text fullwidth"></textarea>
|
|
||||||
</div>
|
|
||||||
<div id="world_info_entry_w++_" class="hidden">
|
|
||||||
<input type=text placeholder="Type"/><input type=text placeholder="Name"/>
|
|
||||||
<div>
|
|
||||||
<input type=text placeholder="attribute"/><input type=text placeholder="value"/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
Comment:
|
|
||||||
<textarea rows=1 id="world_info_comment_" class="world_info_text fullwidth"></textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div id="empty_bias">
|
|
||||||
<div class="bias_phrase">
|
|
||||||
<input type=text placeholder="Word or Phrase to Bias" onchange="save_bias(this);"/>
|
|
||||||
</div>
|
|
||||||
<div class="bias_score">
|
|
||||||
<div class="bias_slider">
|
|
||||||
<div class="bias_slider_bar">
|
|
||||||
<input type="range" min="-12" max="12" step="0.01" value="0" class="setting_item_input"
|
|
||||||
oninput="update_bias_slider_value(this);"
|
|
||||||
onchange="save_bias(this);"/>
|
|
||||||
</div>
|
|
||||||
<div class="bias_slider_min">-12</div>
|
|
||||||
<div class="bias_slider_cur">0</div>
|
|
||||||
<div class="bias_slider_max">12</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="bias_comp_threshold">
|
|
||||||
<div class="bias_slider">
|
|
||||||
<div class="bias_slider_bar">
|
|
||||||
<input type="range" min="0" max="10" step="1" value="10" class="setting_item_input"
|
|
||||||
oninput="update_bias_slider_value(this);"
|
|
||||||
onchange="save_bias(this);"/>
|
|
||||||
</div>
|
|
||||||
<div class="bias_slider_min">0</div>
|
|
||||||
<div class="bias_slider_cur">10</div>
|
|
||||||
<div class="bias_slider_max">10</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<iframe id="download_iframe" style="display:none;"></iframe>
|
<iframe id="download_iframe" style="display:none;"></iframe>
|
||||||
</body>
|
</body>
|
||||||
|
Reference in New Issue
Block a user