fix theme folder rename problem

This commit is contained in:
binary-husky
2023-07-16 13:15:55 +08:00
parent b308fde480
commit fe231f72b6
9 changed files with 7 additions and 7 deletions

12
themes/theme.py Normal file
View File

@@ -0,0 +1,12 @@
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>"
else:
from .default import adjust_theme, advanced_css
theme_declaration = ""