Download stable-diffusion-webui-images-browser/install.py from toto10/extensions: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/toto10/extensions/resolve/main/stable-diffusion-webui-images-browser/install.py
- Command line
-
hf download hf://toto10/extensions/stable-diffusion-webui-images-browser/install.py
-
curl -L -o install.py https://huggingface.co/toto10/extensions/resolve/main/stable-diffusion-webui-images-browser/install.py
394 Bytes
| import launch | |
| import os | |
| if not launch.is_installed("send2trash"): | |
| launch.run_pip("install Send2Trash", "Send2Trash requirement for image browser") | |
| if not launch.is_installed("ImageReward"): | |
| req_IR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "req_IR.txt") | |
| launch.run_pip(f'install -r "{req_IR}" --no-deps image-reward', 'ImageReward requirement for image browser') | |