Create Gradio Themes.txt
Browse files- Gradio Themes.txt +12 -0
Gradio Themes.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
# Get all attributes of gr.themes module
|
| 4 |
+
theme_classes = [attr for attr in dir(gr.themes) if not attr.startswith("_")]
|
| 5 |
+
|
| 6 |
+
print("Available Gradio Themes:\n")
|
| 7 |
+
for theme_name in theme_classes:
|
| 8 |
+
theme_class = getattr(gr.themes, theme_name)
|
| 9 |
+
if isinstance(theme_class, type) and issubclass(theme_class, gr.themes.ThemeClass):
|
| 10 |
+
print(theme_name)
|
| 11 |
+
|
| 12 |
+
### You can replace gr.themes.___ with your preferred theme name
|