| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| UI Themes | |
| This module provides theme configuration for the Gradio interface. | |
| """ | |
| import gradio as gr | |
| def get_theme(): | |
| """ | |
| Create a custom theme for the Gradio interface. | |
| Returns: | |
| gr.Theme: A custom Gradio theme. | |
| """ | |
| return gr.Theme( | |
| primary_hue="blue", | |
| secondary_hue="indigo", | |
| neutral_hue="slate", | |
| font=[gr.themes.GoogleFont("Inter"), "ui-sans-serif", "system-ui", "sans-serif"] | |
| ) | |