未验证 提交 081df45d 编写于 作者: M Maiko Sinkyaet Tan 提交者: GitHub

docs: add python doc (?)

not sure if this available...
上级 423f2222
...@@ -103,6 +103,8 @@ def add_callback(callbacks, fun): ...@@ -103,6 +103,8 @@ def add_callback(callbacks, fun):
def on_app_started(callback): 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) add_callback(callbacks_app_started, callback)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册