ChatPDF-LLAMA-Stable / Gradio Themes.txt
shukdevdattaEX's picture
Create Gradio Themes.txt
b356e23 verified
raw
history blame contribute delete
438 Bytes
import gradio as gr
# Get all attributes of gr.themes module
theme_classes = [attr for attr in dir(gr.themes) if not attr.startswith("_")]
print("Available Gradio Themes:\n")
for theme_name in theme_classes:
theme_class = getattr(gr.themes, theme_name)
if isinstance(theme_class, type) and issubclass(theme_class, gr.themes.ThemeClass):
print(theme_name)
### You can replace gr.themes.___ with your preferred theme name