aboutsummaryrefslogtreecommitdiff
path: root/modules/shared_gradio_themes.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shared_gradio_themes.py')
-rw-r--r--modules/shared_gradio_themes.py4
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)