Download adetailer/sd_webui/script_callbacks.py from toto10/extensions: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/toto10/extensions/resolve/main/adetailer/sd_webui/script_callbacks.py
- Command line
-
hf download hf://toto10/extensions/adetailer/sd_webui/script_callbacks.py
-
curl -L -o script_callbacks.py https://huggingface.co/toto10/extensions/resolve/main/adetailer/sd_webui/script_callbacks.py
323 Bytes
| from __future__ import annotations | |
| from typing import TYPE_CHECKING | |
| if TYPE_CHECKING: | |
| from typing import Callable | |
| def on_ui_settings(callback: Callable): | |
| pass | |
| def on_after_component(callback: Callable): | |
| pass | |
| else: | |
| from modules.script_callbacks import on_after_component, on_ui_settings | |