Allow extensions to define custom CSS and JS
This commit is contained in:
parent
824fa8fc0e
commit
a84f499718
5 changed files with 39 additions and 43 deletions
|
@ -261,6 +261,11 @@ def SD_api_address_update(address):
|
|||
return gr.Textbox.update(label=msg)
|
||||
|
||||
|
||||
def custom_css():
|
||||
path_to_css = Path(__file__).parent.resolve() / 'style.css'
|
||||
return open(path_to_css, 'r').read()
|
||||
|
||||
|
||||
def ui():
|
||||
|
||||
# Gradio elements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue