mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
fix gradio themes not applying
This commit is contained in:
parent
edfae9e78a
commit
66c32e40e8
@ -59,8 +59,8 @@ def reload_gradio_theme(theme_name=None):
|
|||||||
shared.gradio_theme = gr.themes.ThemeClass.load(theme_cache_path)
|
shared.gradio_theme = gr.themes.ThemeClass.load(theme_cache_path)
|
||||||
else:
|
else:
|
||||||
os.makedirs(theme_cache_dir, exist_ok=True)
|
os.makedirs(theme_cache_dir, exist_ok=True)
|
||||||
gradio_theme = gr.themes.ThemeClass.from_hub(theme_name)
|
shared.gradio_theme = gr.themes.ThemeClass.from_hub(theme_name)
|
||||||
gradio_theme.dump(theme_cache_path)
|
shared.gradio_theme.dump(theme_cache_path)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
errors.display(e, "changing gradio theme")
|
errors.display(e, "changing gradio theme")
|
||||||
shared.gradio_theme = gr.themes.Default(**default_theme_args)
|
shared.gradio_theme = gr.themes.Default(**default_theme_args)
|
||||||
|
Loading…
Reference in New Issue
Block a user