reference models add distilled and community sections

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-10-23 20:59:48 -04:00
parent a86fb66989
commit adbff39ca5
7 changed files with 61 additions and 9 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ async function initModels() {
if (en.classList.contains('hide')) gradioApp().getElementById('txt2img_extra_networks_btn').click();
const repeat = setInterval(() => {
const buttons = Array.from(gradioApp().querySelectorAll('#txt2img_model_subdirs > button')) || [];
const reference = buttons.find((b) => b.innerText === 'Reference');
const reference = buttons.find((b) => (b.innerText === 'Reference') || (b.innerText === 'Distilled') || (b.innerText === 'Community'));
if (reference) {
clearInterval(repeat);
reference.click();