diff options
author | Maiko Sinkyaet Tan <maiko.tan.coding@gmail.com> | 2022-10-31 00:47:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-31 00:47:43 +0000 |
commit | 081df45da47feadfb055552c0ad5c6e6ecdd9f28 (patch) | |
tree | 66a11771c809f8bb1db66f958feb0c98c28eb4f9 | |
parent | 423f22228306ae72d0480e25add9777c3c5d8fdf (diff) | |
download | stable-diffusion-webui-gfx803-081df45da47feadfb055552c0ad5c6e6ecdd9f28.tar.gz stable-diffusion-webui-gfx803-081df45da47feadfb055552c0ad5c6e6ecdd9f28.tar.bz2 stable-diffusion-webui-gfx803-081df45da47feadfb055552c0ad5c6e6ecdd9f28.zip |
docs: add python doc (?)
not sure if this available...
-rw-r--r-- | modules/script_callbacks.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/script_callbacks.py b/modules/script_callbacks.py index f5509629..d8aa6f00 100644 --- a/modules/script_callbacks.py +++ b/modules/script_callbacks.py @@ -103,6 +103,8 @@ def add_callback(callbacks, fun): def on_app_started(callback):
+ """register a function to be called when the webui started, the gradio `Block` component and
+ fastapi `FastAPI` object are passed as the arguments"""
add_callback(callbacks_app_started, callback)
|