mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 10:31:17 -08:00
docs: add python doc (?)
not sure if this available...
This commit is contained in:
parent
423f222283
commit
081df45da4
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue