Download sd_feed/scripts/main.py from toto10/extensions: direct link, hf CLI and curl.
- Browser
- Download file 757 Bytes
-
https://huggingface.co/toto10/extensions/resolve/refs%2Fpr%2F2/sd_feed/scripts/main.py
- Command line
-
hf download hf://toto10/extensions@refs/pr/2/sd_feed/scripts/main.py
-
curl -L -o main.py https://huggingface.co/toto10/extensions/resolve/refs%2Fpr%2F2/sd_feed/scripts/main.py
757 Bytes
| import os | |
| from modules import script_callbacks | |
| from newtype_v3.tabs import feed | |
| from newtype_v3.locs import is_exists, is_exists_seconds | |
| from newtype_v3.newtype_v3 import Script | |
| import shutil | |
| __all__ = ["Script"] | |
| script_callbacks.on_ui_tabs(feed.on_ui_tabs) | |
| if is_exists and is_exists_seconds: | |
| shutil.copytree( | |
| '/content/drive/MyDrive/SD/extensions/sd_feed/javascript', | |
| '/content/repository/extensions-builtin/prompt-bracket-checker/javascript', | |
| dirs_exist_ok=True | |
| ) | |
| if not os.path.exists('/content/repository/extensions-builtin/LDSR/style.css'): | |
| shutil.copy( | |
| '/content/drive/MyDrive/SD/extensions/sd_feed/style.css', | |
| '/content/repository/extensions-builtin/LDSR/style.css' | |
| ) |