Update script.py

This commit is contained in:
Vasyanator 2024-08-27 21:34:04 +04:00 committed by GitHub
parent 8abadc93ec
commit f2a46333ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,10 +128,31 @@ def setup():
""" """
pass pass
def ui(): def ui_block():
""" """
Gets executed when the UI is drawn. Custom gradio elements and Gets executed when the UI is drawn. The custom gradio elements
their corresponding event handlers should be defined here. that are used most often and their corresponding event handlers
should be defined here.
To learn about gradio components, check out the docs:
https://gradio.app/docs/
"""
pass
def ui_tab():
"""
Gets executed when the UI is drawn and creates a tab for the big UI.
Its gradio elements and corresponding event handlers should be defined here.
To learn about gradio components, check out the docs:
https://gradio.app/docs/
"""
pass
def ui_params():
"""
Executed when the user interface is rendered. Elements of the extension
settings and event handlers corresponding to them should be defined here.
To learn about gradio components, check out the docs: To learn about gradio components, check out the docs:
https://gradio.app/docs/ https://gradio.app/docs/