Changed var to koboldai_vars.disable_model_load

This commit is contained in:
ebolam
2023-12-16 19:11:32 -05:00
parent 3ed52b77da
commit 148a1e7e6d
3 changed files with 5 additions and 4 deletions

View File

@@ -1253,7 +1253,8 @@ class system_settings(settings):
'lua_koboldcore', 'sp', 'sp_length', '_horde_pid', 'horde_share', 'aibusy', 'lua_koboldcore', 'sp', 'sp_length', '_horde_pid', 'horde_share', 'aibusy',
'serverstarted', 'inference_config', 'image_pipeline', 'summarizer', 'on_colab' 'serverstarted', 'inference_config', 'image_pipeline', 'summarizer', 'on_colab'
'summary_tokenizer', 'use_colab_tpu', 'noai', 'disable_set_aibusy', 'cloudflare_link', 'tts_model', 'summary_tokenizer', 'use_colab_tpu', 'noai', 'disable_set_aibusy', 'cloudflare_link', 'tts_model',
'generating_image', 'bit_8_available', 'host', 'hascuda', 'usegpu', 'rng_states', 'comregex_ai', 'comregex_ui', 'git_repository', 'git_branch', 'colab_arg'] 'generating_image', 'bit_8_available', 'host', 'hascuda', 'usegpu', 'rng_states', 'comregex_ai', 'comregex_ui', 'git_repository', 'git_branch', 'colab_arg',
'disable_load']
settings_name = "system" settings_name = "system"
def __init__(self, socketio, koboldai_var): def __init__(self, socketio, koboldai_var):
self._socketio = socketio self._socketio = socketio
@@ -1340,7 +1341,7 @@ class system_settings(settings):
self.seen_messages = [] self.seen_messages = []
self.git_repository = "" self.git_repository = ""
self.git_branch = "" self.git_branch = ""
self._disable_load = False self.disable_model_load = False
@dataclass @dataclass

View File

@@ -3592,7 +3592,7 @@ body.NotConnected {
display: none; display: none;
} }
.settings_button[system__disable_load="true"] { .settings_button[system_disable_model_load="true"] {
cursor: not-allowed; cursor: not-allowed;
pointer-events: none; pointer-events: none;
} }

View File

@@ -39,7 +39,7 @@
</div> </div>
<div style="display: flex; justify-content: center;"> <div style="display: flex; justify-content: center;">
{% if not hide_ai_menu %} {% if not hide_ai_menu %}
<button class="settings_button var_sync_alt_system__disable_load" onclick="socket.emit('load_model_button', {});"> <button class="settings_button var_sync_alt_system_disable_model_load" onclick="socket.emit('load_model_button', {});">
<span class="material-icons-outlined cursor" tooltip="Load Model" style="font-size: 1.4em;">folder_open</span> <span class="material-icons-outlined cursor" tooltip="Load Model" style="font-size: 1.4em;">folder_open</span>
<span class="button_label">Load Model</span> <span class="button_label">Load Model</span>
</button> </button>