mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-02-16 18:32:25 +01:00
Don't show LoRA options in the main branch
This commit is contained in:
parent
69380e3527
commit
73d947c4a6
@ -321,7 +321,10 @@ async function getAppConfig() {
|
||||
if (config.net && config.net.listen_port !== undefined) {
|
||||
listenPortField.value = config.net.listen_port
|
||||
}
|
||||
if (config.test_diffusers !== undefined) {
|
||||
if (config.test_diffusers === undefined) {
|
||||
document.querySelector("#lora_model_container").style.display = 'none'
|
||||
document.querySelector("#lora_alpha_container").style.display = 'none'
|
||||
} else {
|
||||
testDiffusers.checked = config.test_diffusers && config.update_branch === 'beta'
|
||||
document.querySelector("#lora_model_container").style.display = (testDiffusers.checked ? '' : 'none')
|
||||
document.querySelector("#lora_alpha_container").style.display = (testDiffusers.checked && loraModelField.value !== "" ? '' : 'none')
|
||||
|
Loading…
Reference in New Issue
Block a user