major diffusers update

This commit is contained in:
Vladimir Mandic
2023-07-03 16:48:03 -04:00
parent cc685a8729
commit 8241e33868
23 changed files with 247 additions and 170 deletions
+1
View File
@@ -19,6 +19,7 @@ function setupExtraNetworksForTab(tabname) {
searchTerm = search.value.toLowerCase();
gradioApp().querySelectorAll(`#${tabname}_extra_tabs div.card`).forEach((elem) => {
text = `${elem.querySelector('.name').textContent.toLowerCase()} ${elem.querySelector('.search_term').textContent.toLowerCase()}`;
text = text.replace('models--', 'Diffusers')
elem.style.display = text.indexOf(searchTerm) == -1 ? 'none' : '';
});
});