重新编译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

@@ -73,12 +73,8 @@ def adjust_theme():
chatbot_code_background_color_dark="*neutral_950",
)
js = ''
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: