diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js index 11375b32e..0c16b4393 100644 --- a/public/scripts/extensions/stable-diffusion/index.js +++ b/public/scripts/extensions/stable-diffusion/index.js @@ -1242,7 +1242,16 @@ async function onModelChange() { extension_settings.sd.model = $('#sd_model').find(':selected').val(); saveSettingsDebounced(); - const cloudSources = [sources.horde, sources.novel, sources.openai, sources.togetherai, sources.pollinations, sources.stability, sources.blockentropy]; + const cloudSources = [ + sources.horde, + sources.novel, + sources.openai, + sources.togetherai, + sources.pollinations, + sources.stability, + sources.blockentropy, + sources.huggingface, + ]; if (cloudSources.includes(extension_settings.sd.source)) { return; @@ -1457,6 +1466,9 @@ async function loadSamplers() { case sources.blockentropy: samplers = ['N/A']; break; + case sources.huggingface: + samplers = ['N/A']; + break; } for (const sampler of samplers) { @@ -1646,6 +1658,9 @@ async function loadModels() { case sources.blockentropy: models = await loadBlockEntropyModels(); break; + case sources.huggingface: + models = [{ value: '', text: '' }]; + break; } for (const model of models) { @@ -1993,6 +2008,9 @@ async function loadSchedulers() { case sources.blockentropy: schedulers = ['N/A']; break; + case sources.huggingface: + schedulers = ['N/A']; + break; } for (const scheduler of schedulers) { @@ -2072,6 +2090,9 @@ async function loadVaes() { case sources.blockentropy: vaes = ['N/A']; break; + case sources.huggingface: + vaes = ['N/A']; + break; } for (const vae of vaes) { diff --git a/public/scripts/extensions/stable-diffusion/settings.html b/public/scripts/extensions/stable-diffusion/settings.html index fc514001c..b89366b7c 100644 --- a/public/scripts/extensions/stable-diffusion/settings.html +++ b/public/scripts/extensions/stable-diffusion/settings.html @@ -41,6 +41,7 @@ + @@ -49,7 +50,6 @@ -
@@ -84,9 +84,9 @@ Important: run DrawThings app with HTTP API switch enabled in the UI! The server must be accessible from the SillyTavern host machine.
- Hint: Save an API key in the Hugging Face API settings to use it here. + Hint: Save an API key in the Hugging Face (Text Completion) API settings to use it here. - +