重新编译Gradio优化使用体验

This commit is contained in:
binary-husky
2023-10-06 10:32:03 +08:00
parent 93c76e1809
commit 6310b65d70
15 changed files with 122 additions and 67 deletions

View File

@@ -57,11 +57,8 @@ def adjust_theme():
button_cancel_text_color_dark="white",
)
if LAYOUT=="TOP-DOWN":
js = ""
else:
with open('themes/common.js', 'r', encoding='utf8') as f:
js = f"<script>{f.read()}</script>"
with open('themes/common.js', 'r', encoding='utf8') as f:
js = f"<script>{f.read()}</script>"
# 添加一个萌萌的看板娘
if ADD_WAIFU: