Update main.py

使用本地字体,修改Gradio默认从Googleapis调用字体。从而解决用户由于国内网络环境打开首页缓慢的问题。
这个提交包含在:
ifyz
2023-03-26 15:48:16 +08:00
提交者 GitHub
父节点 6505fea0b7
当前提交 dc58745f4c

查看文件

@@ -26,7 +26,7 @@ crazy_functional = get_crazy_functionals()
gr.Chatbot.postprocess = format_io
with gr.Blocks() as demo:
with gr.Blocks(theme=gr.themes.Default(font=[ "Arial", "sans-serif","Microsoft YaHei"],font_mono=["Arial", "sans-serif","Microsoft YaHei"])) as demo:
gr.HTML(title_html)
with gr.Row():
with gr.Column(scale=2):