xd v1.1.30

- updated code to work with newer version of a1111 for removing subdir buttons that start with "_"
- added requirement for lxml_html_clean after it was seperated from the main lxml project. It will now install the package for you.
main
Curtis 2024-06-15 00:35:42 -04:00
parent 60795b67ad
commit 3eb6ee5b88
3 changed files with 7 additions and 3 deletions

4
install.py Normal file
View File

@ -0,0 +1,4 @@
import launch
if not launch.is_installed("lxml_html_clean"):
launch.run_pip("install lxml_html_clean==0.1.1", "requirements for SD Model Preview XD")

View File

@ -172,8 +172,8 @@ onUiUpdate(function() {
//##################### Hide Subdir Buttons That Start With '_' ########################## //##################### Hide Subdir Buttons That Start With '_' ##########################
// Find all divs with class "extra-network-subdirs" // Find all divs with class "extra-network-dirs"
var subdirDivs = document.querySelectorAll(".extra-network-subdirs"); var subdirDivs = document.querySelectorAll(".extra-network-dirs");
// Iterate through each div // Iterate through each div
subdirDivs.forEach(function(div) { subdirDivs.forEach(function(div) {

View File

@ -11,7 +11,7 @@ from PIL import Image
import base64 import base64
import csv import csv
from io import BytesIO from io import BytesIO
from lxml.html.clean import Cleaner from lxml_html_clean.clean import Cleaner
import importlib.util import importlib.util