Update main.py

使用本地字体,修改Gradio默认从Googleapis调用字体。从而解决用户由于国内网络环境打开首页缓慢的问题。
This commit is contained in:
ifyz 2023-03-26 15:48:16 +08:00 committed by GitHub
parent a63ae898ce
commit 8965706169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ crazy_functional = get_crazy_functionals()
gr.Chatbot.postprocess = format_io 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) gr.HTML(title_html)
with gr.Row(): with gr.Row():
with gr.Column(scale=2): with gr.Column(scale=2):