diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-09 18:19:33 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-08-09 18:19:33 +0000 |
commit | 66c32e40e8c059d958292d665a0eeb7377b18988 (patch) | |
tree | d062df33cfcb7a8f826cbd0e37d9770f11ea94c3 /modules | |
parent | edfae9e78af23bdd6161c55c7ec88533de8925f8 (diff) | |
download | stable-diffusion-webui-gfx803-66c32e40e8c059d958292d665a0eeb7377b18988.tar.gz stable-diffusion-webui-gfx803-66c32e40e8c059d958292d665a0eeb7377b18988.tar.bz2 stable-diffusion-webui-gfx803-66c32e40e8c059d958292d665a0eeb7377b18988.zip |
fix gradio themes not applying
Diffstat (limited to 'modules')
-rw-r--r-- | modules/shared_gradio_themes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/shared_gradio_themes.py b/modules/shared_gradio_themes.py index ad1f2212..485e89d5 100644 --- a/modules/shared_gradio_themes.py +++ b/modules/shared_gradio_themes.py @@ -59,8 +59,8 @@ def reload_gradio_theme(theme_name=None): shared.gradio_theme = gr.themes.ThemeClass.load(theme_cache_path)
else:
os.makedirs(theme_cache_dir, exist_ok=True)
- gradio_theme = gr.themes.ThemeClass.from_hub(theme_name)
- gradio_theme.dump(theme_cache_path)
+ shared.gradio_theme = gr.themes.ThemeClass.from_hub(theme_name)
+ shared.gradio_theme.dump(theme_cache_path)
except Exception as e:
errors.display(e, "changing gradio theme")
shared.gradio_theme = gr.themes.Default(**default_theme_args)
|