logging -> loguru: stage 3

This commit is contained in:
binary-husky
2024-09-11 08:49:55 +00:00
parent 80acd9c875
commit 0d082327c8
27 changed files with 73 additions and 67 deletions

View File

@@ -1,6 +1,7 @@
import os
import gradio as gr
from toolbox import get_conf
from loguru import logger
CODE_HIGHLIGHT, ADD_WAIFU, LAYOUT = get_conf("CODE_HIGHLIGHT", "ADD_WAIFU", "LAYOUT")
theme_dir = os.path.dirname(__file__)
@@ -97,7 +98,7 @@ def adjust_theme():
)
except:
set_theme = None
print("gradio版本较旧, 不能自定义字体和颜色")
logger.error("gradio版本较旧, 不能自定义字体和颜色")
return set_theme