Skip to content

Commit 081df45

Browse files
authored
docs: add python doc (?)
not sure if this available...
1 parent 423f222 commit 081df45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/script_callbacks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ def add_callback(callbacks, fun):
103103

104104

105105
def on_app_started(callback):
106+
"""register a function to be called when the webui started, the gradio `Block` component and
107+
fastapi `FastAPI` object are passed as the arguments"""
106108
add_callback(callbacks_app_started, callback)
107109

108110

0 commit comments

Comments
 (0)