File size: 473 Bytes
8a5e8bc
 
 
 
 
 
 
5c0a088
 
 
8a5e8bc
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
from toolbox import get_conf
THEME, = get_conf('THEME')

if THEME == 'Chuanhu-Small-and-Beautiful':
    from .green import adjust_theme, advanced_css
    theme_declaration = "<h2 align=\"center\"  class=\"small\">[Chuanhu-Small-and-Beautiful主题]</h2>"
elif THEME == 'High-Contrast':
    from .contrast import adjust_theme, advanced_css
    theme_declaration = ""
else:
    from .default import adjust_theme, advanced_css
    theme_declaration = ""