update installer usage

This commit is contained in:
Vladimir Mandic
2026-02-19 12:21:46 +01:00
parent 76a20cf43d
commit 216558185b
34 changed files with 145 additions and 117 deletions
+4 -4
View File
@@ -82,17 +82,17 @@ def html_css(css: list[str]):
themecss = os.path.join(script_path, "javascript", f"{modules.shared.opts.gradio_theme}.css")
if os.path.exists(themecss):
head += stylesheet(themecss)
modules.log.debug(f'UI theme: css="{themecss}" base="{css}" user="{usercss}"')
log.debug(f'UI theme: css="{themecss}" base="{css}" user="{usercss}"')
else:
modules.log.error(f'UI theme: css="{themecss}" not found')
log.error(f'UI theme: css="{themecss}" not found')
elif modules.shared.opts.theme_type == 'Modern':
theme_folder = next((e.path for e in modules.extensions.extensions if e.name == 'sdnext-modernui'), None)
themecss = os.path.join(theme_folder or '', 'themes', f'{modules.shared.opts.gradio_theme}.css')
if os.path.exists(themecss):
head += stylesheet(themecss)
modules.log.debug(f'UI theme: css="{themecss}" base="{css}" user="{usercss}"')
log.debug(f'UI theme: css="{themecss}" base="{css}" user="{usercss}"')
else:
modules.log.error(f'UI theme: css="{themecss}" not found')
log.error(f'UI theme: css="{themecss}" not found')
if usercss is not None:
head += stylesheet(usercss)
return head