fix hijack and update script layout

This commit is contained in:
Vladimir Mandic
2024-02-15 08:03:24 -05:00
parent 25c652782f
commit 290bfc8b41
15 changed files with 45 additions and 35 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ def html_css(is_builtin: bool):
if not os.path.isfile(cssfile):
continue
head += stylesheet(cssfile)
if shared.opts.gradio_theme in theme.list_builtin_themes():
if shared.opts.gradio_theme in theme.list_builtin_themes() and os.path.exists(os.path.join(script_path, "javascript", f"{shared.opts.gradio_theme}.css")):
head += stylesheet(os.path.join(script_path, "javascript", f"{shared.opts.gradio_theme}.css"))
if os.path.exists(os.path.join(data_path, "user.css")):
head += stylesheet(os.path.join(data_path, "user.css"))